Here is what I did to get to this issue:
Dockerfile:
FROM ubuntu:14.04
RUN apt-get -y update \
&& apt-get -y install wget maven\
&& mkdir /usr/local/shipshape \
&& cd /usr/local/shipshape \
&& wget https://github.com/google/shipshape/archive/release-2015-11-17.tar.gz \
&& tar -xvf release-2015-11-17.tar.gz
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
ENV PATH $JAVA_HOME/bin:$PATH
RUN cd /usr/local/shipshape/shipshape-release-2015-11-17/shipshape/jenkins_plugin \
&& ./update-dependencies.sh \
&& touch output.log \
&& ./build-plugin.sh > output.log 2&>1; exit 0
WORKDIR /usr/local/shipshape/shipshape-release-2015-11-17/shipshape/jenkins_plugin
ENTRYPOINT
build-plugin.sh outputs this at the end, the full output can be found if you build and run the dockerfile above and cat output.log.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.658s
[INFO] Finished at: Fri Jan 22 09:04:23 UTC 2016
[INFO] Final Memory: 16M/38M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project shipshape-plugin: Could not resolve dependencies for project com.google.shipshape.jenkins:shipshape-plugin:hpi:0.37: The following artifacts could not be resolved: com.google.code:kythe-analysis-proto:jar:1.0, com.google.code:kythe-storage-proto:jar:1.0, com.google.code:kythe-any-proto:jar:1.0, com.google.code:shipshape-rpc-proto:jar:1.0, com.google.code:shipshape-context-proto:jar:1.0, com.google.code:shipshape-repo-context-proto:jar:1.0, com.google.code:shipshape-note-proto:jar:1.0, com.google.code:shipshape-textrange-proto:jar:1.0: Could not find artifact com.google.code:kythe-analysis-proto:jar:1.0 in repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
So it seems that the issue here is Could not find artifact com.google.code:kythe-analysis-proto:jar:1.0 in repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/) -> [Help 1]. I took a look at http://repo.jenkins-ci.org/public/com/google/code/ and did not find anything named kythe at all so maybe it has moved?
Docker fails in building the jenkins build.
Here is what I did to get to this issue: Dockerfile:
build-plugin.sh outputs this at the end, the full output can be found if you build and run the dockerfile above and cat output.log.
So it seems that the issue here is
Could not find artifact com.google.code:kythe-analysis-proto:jar:1.0 in repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/) -> [Help 1]
. I took a look at http://repo.jenkins-ci.org/public/com/google/code/ and did not find anything named kythe at all so maybe it has moved?