Created
August 31, 2016 18:47
-
-
Save alvarolobato/8ef9a33810059379a025ea1c7769a9e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started by user admin | |
[Pipeline] node | |
Running on linux in /home/ec2-user/jenkins/workspace/Publish image | |
[Pipeline] { | |
[Pipeline] git | |
Cloning the remote Git repository | |
Cloning repository https://github.com/jenkinsci/docker.git | |
> git init /home/ec2-user/jenkins/workspace/Publish image # timeout=10 | |
Fetching upstream changes from https://github.com/jenkinsci/docker.git | |
> git --version # timeout=10 | |
> git -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/docker.git +refs/heads/*:refs/remotes/origin/* | |
> git config remote.origin.url https://github.com/jenkinsci/docker.git # timeout=10 | |
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 | |
> git config remote.origin.url https://github.com/jenkinsci/docker.git # timeout=10 | |
Fetching upstream changes from https://github.com/jenkinsci/docker.git | |
> git -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/docker.git +refs/heads/*:refs/remotes/origin/* | |
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 | |
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 | |
Checking out Revision 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 (refs/remotes/origin/master) | |
> git config core.sparsecheckout # timeout=10 | |
> git checkout -f 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
> git branch -a -v --no-abbrev # timeout=10 | |
> git checkout -b master 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 | |
> git rev-list 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker build -t test-environment:snapshot . | |
Sending build context to Docker daemon 408.6 kB | |
Step 1 : FROM openjdk:8-jdk | |
8-jdk: Pulling from library/openjdk | |
8ad8b3f87b37: Pulling fs layer | |
751fe39c4d34: Pulling fs layer | |
ae3b77eefc06: Pulling fs layer | |
8b357fc28db9: Pulling fs layer | |
1a614fcb4b1b: Pulling fs layer | |
1fcd29499236: Pulling fs layer | |
1df99ed2f401: Pulling fs layer | |
c4b6cf75aef4: Pulling fs layer | |
1a614fcb4b1b: Waiting | |
1fcd29499236: Waiting | |
1df99ed2f401: Waiting | |
c4b6cf75aef4: Waiting | |
8b357fc28db9: Waiting | |
751fe39c4d34: Verifying Checksum | |
751fe39c4d34: Download complete | |
8b357fc28db9: Verifying Checksum | |
8b357fc28db9: Download complete | |
1a614fcb4b1b: Verifying Checksum | |
1a614fcb4b1b: Download complete | |
1fcd29499236: Verifying Checksum | |
1fcd29499236: Download complete | |
ae3b77eefc06: Verifying Checksum | |
ae3b77eefc06: Download complete | |
c4b6cf75aef4: Verifying Checksum | |
c4b6cf75aef4: Download complete | |
8ad8b3f87b37: Verifying Checksum | |
8ad8b3f87b37: Download complete | |
1df99ed2f401: Verifying Checksum | |
1df99ed2f401: Download complete | |
8ad8b3f87b37: Pull complete | |
751fe39c4d34: Pull complete | |
ae3b77eefc06: Pull complete | |
8b357fc28db9: Pull complete | |
1a614fcb4b1b: Pull complete | |
1fcd29499236: Pull complete | |
1df99ed2f401: Pull complete | |
c4b6cf75aef4: Pull complete | |
Digest: sha256:581a4afcbbedd8fdf194d597cb5106c1f91463024fb3a49a2d9f025165eb675f | |
Status: Downloaded newer image for openjdk:8-jdk | |
---> ea40c858f006 | |
Step 2 : RUN apt-get update && apt-get install -y git curl zip && rm -rf /var/lib/apt/lists/* | |
---> Running in f3ee1a13c59e | |
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] | |
Ign http://httpredir.debian.org jessie InRelease | |
Get:2 http://httpredir.debian.org jessie-updates InRelease [142 kB] | |
Get:3 http://httpredir.debian.org jessie-backports InRelease [166 kB] | |
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [387 kB] | |
Get:5 http://httpredir.debian.org jessie Release.gpg [2373 B] | |
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB] | |
Get:7 http://httpredir.debian.org jessie-backports/main amd64 Packages [871 kB] | |
Get:8 http://httpredir.debian.org jessie Release [148 kB] | |
Get:9 http://httpredir.debian.org jessie/main amd64 Packages [9032 kB] | |
Fetched 10.8 MB in 2s (3943 kB/s) | |
Reading package lists... | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
git is already the newest version. | |
curl is already the newest version. | |
The following NEW packages will be installed: | |
zip | |
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 228 kB of archives. | |
After this operation, 607 kB of additional disk space will be used. | |
Get:1 http://httpredir.debian.org/debian/ jessie/main zip amd64 3.0-8 [228 kB] | |
[91mdebconf: delaying package configuration, since apt-utils is not installed | |
[0mFetched 228 kB in 0s (1234 kB/s) | |
Selecting previously unselected package zip. | |
(Reading database ... | |
(Reading database ... 5% | |
(Reading database ... 10% | |
(Reading database ... 15% | |
(Reading database ... 20% | |
(Reading database ... 25% | |
(Reading database ... 30% | |
(Reading database ... 35% | |
(Reading database ... 40% | |
(Reading database ... 45% | |
(Reading database ... 50% | |
(Reading database ... 55% | |
(Reading database ... 60% | |
(Reading database ... 65% | |
(Reading database ... 70% | |
(Reading database ... 75% | |
(Reading database ... 80% | |
(Reading database ... 85% | |
(Reading database ... 90% | |
(Reading database ... 95% | |
(Reading database ... 100% | |
(Reading database ... 17557 files and directories currently installed.) | |
Preparing to unpack .../archives/zip_3.0-8_amd64.deb ... | |
Unpacking zip (3.0-8) ... | |
Setting up zip (3.0-8) ... | |
---> 328871dc0b8e | |
Removing intermediate container f3ee1a13c59e | |
Step 3 : ENV JENKINS_HOME /var/jenkins_home | |
---> Running in d7b75c5b895f | |
---> af8686a2c4ce | |
Removing intermediate container d7b75c5b895f | |
Step 4 : ENV JENKINS_SLAVE_AGENT_PORT 50000 | |
---> Running in 02eccdc424ae | |
---> 839a3a089b6d | |
Removing intermediate container 02eccdc424ae | |
Step 5 : ARG user=jenkins | |
---> Running in 353d54134ce3 | |
---> b320112fba7e | |
Removing intermediate container 353d54134ce3 | |
Step 6 : ARG group=jenkins | |
---> Running in c86fb1bc3cf8 | |
---> 953af35a4342 | |
Removing intermediate container c86fb1bc3cf8 | |
Step 7 : ARG uid=1000 | |
---> Running in 1de6f29f835b | |
---> 963c9d6a7625 | |
Removing intermediate container 1de6f29f835b | |
Step 8 : ARG gid=1000 | |
---> Running in 58a79ad7c4ea | |
---> 64a45817b079 | |
Removing intermediate container 58a79ad7c4ea | |
Step 9 : RUN groupadd -g ${gid} ${group} && useradd -d "$JENKINS_HOME" -u ${uid} -g ${gid} -m -s /bin/bash ${user} | |
---> Running in 9e0f47c75c2a | |
---> d6c5b86b0de4 | |
Removing intermediate container 9e0f47c75c2a | |
Step 10 : VOLUME /var/jenkins_home | |
---> Running in 39a05652afb4 | |
---> 3826eb479a20 | |
Removing intermediate container 39a05652afb4 | |
Step 11 : RUN mkdir -p /usr/share/jenkins/ref/init.groovy.d | |
---> Running in 9d14a9346e79 | |
---> de7c79c2c9d7 | |
Removing intermediate container 9d14a9346e79 | |
Step 12 : ENV TINI_VERSION 0.9.0 | |
---> Running in c20d470bf8b3 | |
---> 34f0330b0450 | |
Removing intermediate container c20d470bf8b3 | |
Step 13 : ENV TINI_SHA fa23d1e20732501c3bb8eeeca423c89ac80ed452 | |
---> Running in e69dd4383cc0 | |
---> 923817b5c96b | |
Removing intermediate container e69dd4383cc0 | |
Step 14 : RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static -o /bin/tini && chmod +x /bin/tini && echo "$TINI_SHA /bin/tini" | sha1sum -c - | |
---> Running in cb910c3bff35 | |
/bin/tini: OK | |
---> e41cfedce483 | |
Removing intermediate container cb910c3bff35 | |
Step 15 : COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy | |
---> c810236467e3 | |
Removing intermediate container 60c8668f350c | |
Step 16 : ARG JENKINS_VERSION | |
---> Running in acd5c41d1675 | |
---> 653e8e086f4e | |
Removing intermediate container acd5c41d1675 | |
Step 17 : ENV JENKINS_VERSION ${JENKINS_VERSION:-2.7.2} | |
---> Running in 29cec687debc | |
---> d81118d69b87 | |
Removing intermediate container 29cec687debc | |
Step 18 : ARG JENKINS_SHA=4c05175677825a0c311ef3001bbb0a767dad0e8d | |
---> Running in d336de2c08c6 | |
---> 7a882cbdcf0d | |
Removing intermediate container d336de2c08c6 | |
Step 19 : ARG JENKINS_URL=http://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war | |
---> Running in 657616bb302e | |
---> 400ea395c368 | |
Removing intermediate container 657616bb302e | |
Step 20 : RUN curl -fsSL ${JENKINS_URL} -o /usr/share/jenkins/jenkins.war && echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" | sha1sum -c - | |
---> Running in e6b098de9268 | |
/usr/share/jenkins/jenkins.war: OK | |
---> ba85fe25aee6 | |
Removing intermediate container e6b098de9268 | |
Step 21 : ENV JENKINS_UC https://updates.jenkins.io | |
---> Running in 5f96ec33019c | |
---> 224005653b9c | |
Removing intermediate container 5f96ec33019c | |
Step 22 : RUN chown -R ${user} "$JENKINS_HOME" /usr/share/jenkins/ref | |
---> Running in 84fed926a1bb | |
---> 1c8c63435368 | |
Removing intermediate container 84fed926a1bb | |
Step 23 : EXPOSE 8080 | |
---> Running in a48331c66b7e | |
---> 68b3da60d70f | |
Removing intermediate container a48331c66b7e | |
Step 24 : EXPOSE 50000 | |
---> Running in 9e53ab5c7ac8 | |
---> 350f25cd9c08 | |
Removing intermediate container 9e53ab5c7ac8 | |
Step 25 : ENV COPY_REFERENCE_FILE_LOG $JENKINS_HOME/copy_reference_file.log | |
---> Running in dfc748a25d36 | |
---> 787bfa8632b4 | |
Removing intermediate container dfc748a25d36 | |
Step 26 : USER ${user} | |
---> Running in ecb6a62b3e06 | |
---> 9b28bd51beba | |
Removing intermediate container ecb6a62b3e06 | |
Step 27 : COPY jenkins-support /usr/local/bin/jenkins-support | |
---> c7ecb13bd3cf | |
Removing intermediate container c48bc1eafe43 | |
Step 28 : COPY jenkins.sh /usr/local/bin/jenkins.sh | |
---> fc43cc21700a | |
Removing intermediate container a97ea87dcbdf | |
Step 29 : ENTRYPOINT /bin/tini -- /usr/local/bin/jenkins.sh | |
---> Running in 9f64f6a0f94b | |
---> de84c4dee83d | |
Removing intermediate container 9f64f6a0f94b | |
Step 30 : COPY plugins.sh /usr/local/bin/plugins.sh | |
---> af411c6babb1 | |
Removing intermediate container 6cf8dd193f6b | |
Step 31 : COPY install-plugins.sh /usr/local/bin/install-plugins.sh | |
---> 75facaf5850e | |
Removing intermediate container cd12a94be6e6 | |
Successfully built 75facaf5850e | |
[Pipeline] dockerFingerprintFrom | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker inspect -f . test-environment:snapshot | |
. | |
[Pipeline] withDockerContainer | |
$ docker run -t -d -u 500:500 -w "/home/ec2-user/jenkins/workspace/Publish image" -v "/home/ec2-user/jenkins/workspace/Publish image:/home/ec2-user/jenkins/workspace/Publish image:rw" -v "/home/ec2-user/jenkins/workspace/Publish image@tmp:/home/ec2-user/jenkins/workspace/Publish image@tmp:rw" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** test-environment:snapshot cat | |
[Pipeline] { | |
[Pipeline] sh | |
[Publish image] Running shell script | |
Error response from daemon: Container a6c77edd4c43b02a039f27f8fa7f8e6bdfe1f6f5229aa42df5374c54646e8269 is not running | |
[Pipeline] } | |
$ docker stop a6c77edd4c43b02a039f27f8fa7f8e6bdfe1f6f5229aa42df5374c54646e8269 | |
$ docker rm -f a6c77edd4c43b02a039f27f8fa7f8e6bdfe1f6f5229aa42df5374c54646e8269 | |
[Pipeline] // withDockerContainer | |
[Pipeline] } | |
[Pipeline] // node | |
[Pipeline] End of Pipeline | |
ERROR: script returned exit code -2 | |
Finished: FAILURE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started by user admin | |
[Pipeline] node | |
Running on linux in /home/ec2-user/jenkins/workspace/Publish image | |
[Pipeline] { | |
[Pipeline] git | |
> git rev-parse --is-inside-work-tree # timeout=10 | |
Fetching changes from the remote Git repository | |
> git config remote.origin.url https://github.com/jenkinsci/docker.git # timeout=10 | |
Fetching upstream changes from https://github.com/jenkinsci/docker.git | |
> git --version # timeout=10 | |
> git -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/docker.git +refs/heads/*:refs/remotes/origin/* | |
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 | |
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 | |
Checking out Revision 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 (refs/remotes/origin/master) | |
> git config core.sparsecheckout # timeout=10 | |
> git checkout -f 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
> git branch -a -v --no-abbrev # timeout=10 | |
> git branch -D master # timeout=10 | |
> git checkout -b master 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 | |
> git rev-list 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker build -t test-environment:snapshot . | |
Sending build context to Docker daemon 409.1 kB | |
Step 1 : FROM openjdk:8-jdk | |
---> ea40c858f006 | |
Step 2 : RUN apt-get update && apt-get install -y git curl zip && rm -rf /var/lib/apt/lists/* | |
---> Using cache | |
---> 328871dc0b8e | |
Step 3 : ENV JENKINS_HOME /var/jenkins_home | |
---> Using cache | |
---> af8686a2c4ce | |
Step 4 : ENV JENKINS_SLAVE_AGENT_PORT 50000 | |
---> Using cache | |
---> 839a3a089b6d | |
Step 5 : ARG user=jenkins | |
---> Using cache | |
---> b320112fba7e | |
Step 6 : ARG group=jenkins | |
---> Using cache | |
---> 953af35a4342 | |
Step 7 : ARG uid=1000 | |
---> Using cache | |
---> 963c9d6a7625 | |
Step 8 : ARG gid=1000 | |
---> Using cache | |
---> 64a45817b079 | |
Step 9 : RUN groupadd -g ${gid} ${group} && useradd -d "$JENKINS_HOME" -u ${uid} -g ${gid} -m -s /bin/bash ${user} | |
---> Using cache | |
---> d6c5b86b0de4 | |
Step 10 : VOLUME /var/jenkins_home | |
---> Using cache | |
---> 3826eb479a20 | |
Step 11 : RUN mkdir -p /usr/share/jenkins/ref/init.groovy.d | |
---> Using cache | |
---> de7c79c2c9d7 | |
Step 12 : ENV TINI_VERSION 0.9.0 | |
---> Using cache | |
---> 34f0330b0450 | |
Step 13 : ENV TINI_SHA fa23d1e20732501c3bb8eeeca423c89ac80ed452 | |
---> Using cache | |
---> 923817b5c96b | |
Step 14 : RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static -o /bin/tini && chmod +x /bin/tini && echo "$TINI_SHA /bin/tini" | sha1sum -c - | |
---> Using cache | |
---> e41cfedce483 | |
Step 15 : COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy | |
---> Using cache | |
---> c810236467e3 | |
Step 16 : ARG JENKINS_VERSION | |
---> Using cache | |
---> 653e8e086f4e | |
Step 17 : ENV JENKINS_VERSION ${JENKINS_VERSION:-2.7.2} | |
---> Using cache | |
---> d81118d69b87 | |
Step 18 : ARG JENKINS_SHA=4c05175677825a0c311ef3001bbb0a767dad0e8d | |
---> Using cache | |
---> 7a882cbdcf0d | |
Step 19 : ARG JENKINS_URL=http://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war | |
---> Using cache | |
---> 400ea395c368 | |
Step 20 : RUN curl -fsSL ${JENKINS_URL} -o /usr/share/jenkins/jenkins.war && echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" | sha1sum -c - | |
---> Using cache | |
---> ba85fe25aee6 | |
Step 21 : ENV JENKINS_UC https://updates.jenkins.io | |
---> Using cache | |
---> 224005653b9c | |
Step 22 : RUN chown -R ${user} "$JENKINS_HOME" /usr/share/jenkins/ref | |
---> Using cache | |
---> 1c8c63435368 | |
Step 23 : EXPOSE 8080 | |
---> Using cache | |
---> 68b3da60d70f | |
Step 24 : EXPOSE 50000 | |
---> Using cache | |
---> 350f25cd9c08 | |
Step 25 : ENV COPY_REFERENCE_FILE_LOG $JENKINS_HOME/copy_reference_file.log | |
---> Using cache | |
---> 787bfa8632b4 | |
Step 26 : USER ${user} | |
---> Using cache | |
---> 9b28bd51beba | |
Step 27 : COPY jenkins-support /usr/local/bin/jenkins-support | |
---> Using cache | |
---> c7ecb13bd3cf | |
Step 28 : COPY jenkins.sh /usr/local/bin/jenkins.sh | |
---> Using cache | |
---> fc43cc21700a | |
Step 29 : ENTRYPOINT /bin/tini -- /usr/local/bin/jenkins.sh | |
---> Using cache | |
---> de84c4dee83d | |
Step 30 : COPY plugins.sh /usr/local/bin/plugins.sh | |
---> Using cache | |
---> af411c6babb1 | |
Step 31 : COPY install-plugins.sh /usr/local/bin/install-plugins.sh | |
---> Using cache | |
---> 75facaf5850e | |
Successfully built 75facaf5850e | |
[Pipeline] dockerFingerprintFrom | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker inspect -f . test-environment:snapshot | |
. | |
[Pipeline] withDockerContainer | |
$ docker run -t -d -u 500:500 -w "/home/ec2-user/jenkins/workspace/Publish image" -v "/home/ec2-user/jenkins/workspace/Publish image:/home/ec2-user/jenkins/workspace/Publish image:rw" -v "/home/ec2-user/jenkins/workspace/Publish image@tmp:/home/ec2-user/jenkins/workspace/Publish image@tmp:rw" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** test-environment:snapshot cat | |
[Pipeline] { | |
[Pipeline] sh | |
[Publish image] Running shell script | |
Error response from daemon: Container e02bf48fa2e6456082f2e2341443b065e771fd07bb958d763ec581a5852d8b24 is not running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
git 'https://github.com/jenkinsci/docker.git' // checks out Dockerfile | |
def myEnv = docker.build 'test-environment:snapshot' | |
myEnv.inside { | |
sh 'java -version' //execute some command inside the image | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started by user admin | |
[Pipeline] node | |
Running on linux in /home/ec2-user/jenkins/workspace/Publish image | |
[Pipeline] { | |
[Pipeline] git | |
> git rev-parse --is-inside-work-tree # timeout=10 | |
Fetching changes from the remote Git repository | |
> git config remote.origin.url https://github.com/jenkinsci/docker.git # timeout=10 | |
Fetching upstream changes from https://github.com/jenkinsci/docker.git | |
> git --version # timeout=10 | |
> git -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/docker.git +refs/heads/*:refs/remotes/origin/* | |
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 | |
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 | |
Checking out Revision 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 (refs/remotes/origin/master) | |
> git config core.sparsecheckout # timeout=10 | |
> git checkout -f 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
> git branch -a -v --no-abbrev # timeout=10 | |
> git branch -D master # timeout=10 | |
> git checkout -b master 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 | |
> git rev-list 0d167af18b6f6dfd9ebf84fbb873114fad7707f5 # timeout=10 | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker build -t test-environment:snapshot . | |
Sending build context to Docker daemon 409.6 kB | |
Step 1 : FROM openjdk:8-jdk | |
---> ea40c858f006 | |
Step 2 : RUN apt-get update && apt-get install -y git curl zip && rm -rf /var/lib/apt/lists/* | |
---> Using cache | |
---> 328871dc0b8e | |
Step 3 : ENV JENKINS_HOME /var/jenkins_home | |
---> Using cache | |
---> af8686a2c4ce | |
Step 4 : ENV JENKINS_SLAVE_AGENT_PORT 50000 | |
---> Using cache | |
---> 839a3a089b6d | |
Step 5 : ARG user=jenkins | |
---> Using cache | |
---> b320112fba7e | |
Step 6 : ARG group=jenkins | |
---> Using cache | |
---> 953af35a4342 | |
Step 7 : ARG uid=1000 | |
---> Using cache | |
---> 963c9d6a7625 | |
Step 8 : ARG gid=1000 | |
---> Using cache | |
---> 64a45817b079 | |
Step 9 : RUN groupadd -g ${gid} ${group} && useradd -d "$JENKINS_HOME" -u ${uid} -g ${gid} -m -s /bin/bash ${user} | |
---> Using cache | |
---> d6c5b86b0de4 | |
Step 10 : VOLUME /var/jenkins_home | |
---> Using cache | |
---> 3826eb479a20 | |
Step 11 : RUN mkdir -p /usr/share/jenkins/ref/init.groovy.d | |
---> Using cache | |
---> de7c79c2c9d7 | |
Step 12 : ENV TINI_VERSION 0.9.0 | |
---> Using cache | |
---> 34f0330b0450 | |
Step 13 : ENV TINI_SHA fa23d1e20732501c3bb8eeeca423c89ac80ed452 | |
---> Using cache | |
---> 923817b5c96b | |
Step 14 : RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static -o /bin/tini && chmod +x /bin/tini && echo "$TINI_SHA /bin/tini" | sha1sum -c - | |
---> Using cache | |
---> e41cfedce483 | |
Step 15 : COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy | |
---> Using cache | |
---> c810236467e3 | |
Step 16 : ARG JENKINS_VERSION | |
---> Using cache | |
---> 653e8e086f4e | |
Step 17 : ENV JENKINS_VERSION ${JENKINS_VERSION:-2.7.2} | |
---> Using cache | |
---> d81118d69b87 | |
Step 18 : ARG JENKINS_SHA=4c05175677825a0c311ef3001bbb0a767dad0e8d | |
---> Using cache | |
---> 7a882cbdcf0d | |
Step 19 : ARG JENKINS_URL=http://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war | |
---> Using cache | |
---> 400ea395c368 | |
Step 20 : RUN curl -fsSL ${JENKINS_URL} -o /usr/share/jenkins/jenkins.war && echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" | sha1sum -c - | |
---> Using cache | |
---> ba85fe25aee6 | |
Step 21 : ENV JENKINS_UC https://updates.jenkins.io | |
---> Using cache | |
---> 224005653b9c | |
Step 22 : RUN chown -R ${user} "$JENKINS_HOME" /usr/share/jenkins/ref | |
---> Using cache | |
---> 1c8c63435368 | |
Step 23 : EXPOSE 8080 | |
---> Using cache | |
---> 68b3da60d70f | |
Step 24 : EXPOSE 50000 | |
---> Using cache | |
---> 350f25cd9c08 | |
Step 25 : ENV COPY_REFERENCE_FILE_LOG $JENKINS_HOME/copy_reference_file.log | |
---> Using cache | |
---> 787bfa8632b4 | |
Step 26 : USER ${user} | |
---> Using cache | |
---> 9b28bd51beba | |
Step 27 : COPY jenkins-support /usr/local/bin/jenkins-support | |
---> Using cache | |
---> c7ecb13bd3cf | |
Step 28 : COPY jenkins.sh /usr/local/bin/jenkins.sh | |
---> Using cache | |
---> fc43cc21700a | |
Step 29 : ENTRYPOINT /bin/tini -- /usr/local/bin/jenkins.sh | |
---> Using cache | |
---> de84c4dee83d | |
Step 30 : COPY plugins.sh /usr/local/bin/plugins.sh | |
---> Using cache | |
---> af411c6babb1 | |
Step 31 : COPY install-plugins.sh /usr/local/bin/install-plugins.sh | |
---> Using cache | |
---> 75facaf5850e | |
Successfully built 75facaf5850e | |
[Pipeline] dockerFingerprintFrom | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ docker inspect -f . test-environment:snapshot | |
. | |
[Pipeline] withDockerContainer | |
$ docker run -t -d -u 500:500 -u root:root -w "/home/ec2-user/jenkins/workspace/Publish image" -v "/home/ec2-user/jenkins/workspace/Publish image:/home/ec2-user/jenkins/workspace/Publish image:rw" -v "/home/ec2-user/jenkins/workspace/Publish image@tmp:/home/ec2-user/jenkins/workspace/Publish image@tmp:rw" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** test-environment:snapshot cat | |
[Pipeline] { | |
[Pipeline] sh | |
[Publish image] Running shell script | |
+ java -version | |
openjdk version "1.8.0_102" | |
OpenJDK Runtime Environment (build 1.8.0_102-8u102-b14.1-1~bpo8+1-b14) | |
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode) | |
[Pipeline] } | |
$ docker stop a6b13ee473bb727f5699121cf468ba44a1b9b6637ee8242a74c57637185f1622 | |
$ docker rm -f a6b13ee473bb727f5699121cf468ba44a1b9b6637ee8242a74c57637185f1622 | |
[Pipeline] // withDockerContainer | |
[Pipeline] } | |
[Pipeline] // node | |
[Pipeline] End of Pipeline | |
Finished: SUCCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment