Home > OS >  Jenkins using shell script to start the docker container to an error
Jenkins using shell script to start the docker container to an error

Time:09-19

Started by the user zhushengjie
Building workspace in/var/jenkins_home/workspace/Java - app
Git rev - parse - is - inside - work - tree # timeout=10
Fetching changes from the remote Git repository
Git config remote. Origin. Url https://git.oschina.net/zhushengjie/second.git # timeout=10
Fetching upstream changes from https://git.oschina.net/zhushengjie/second.git
Git - version # timeout=10
Git fetch - tags - progress https://git.oschina.net/zhushengjie/second.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 ad2ece7601fdcf0564216347b6fd8352068ddabc (refs/remotes/origin/master)
Git config core. # sparsecheckout timeout=10
Git checkout -f ad2ece7601fdcf0564216347b6fd8352068ddabc
Git rev - list ad2ece7601fdcf0564216347b6fd8352068ddabc # timeout=10
[Java - app] $/bin/sh - xe/TMP/hudson6525268925942869010. Sh
+ REGISTRY_URL=192.168.181.129:5000
+ cp/root/apache maven - 3.3.3 - bin. Tar. Gz/var/jenkins_home/workspace/Java - app/maven
+ docker build -t csphere/maven: 3.3.3/var/jenkins_home/workspace/Java - app/maven
Sending the build context to Docker daemon 8.135 MB

1/9 Step: the FROM csphere/JDK: 1.7.0
---> F1397a72d881
2/9 Step: MAINTAINER Carson, C.J.Z eong & lt; [email protected] & gt;
---> Using cache
---> 7 e147cce145c
3/9 Step: ENV MAVEN_VERSION 3.3.3
---> Using cache
---> 88 c34cdbb58f
4/9 Step: ENV MAVEN_HOME/opt/maven
---> Using cache
---> Ec6ac9e7c6d0
5/9 Step: COPY the apache maven - 3.3.3 - bin. Tar. Gz/opt/
---> Using cache
---> A9757b445106
6/9 Step: RUN tar XZF/opt/apache maven - 3.3.3 - bin. Tar. Gz - C/opt & amp; & Mv/opt/apache maven - ${MAVEN_VERSION}/opt/maven & amp; & Ln -s/opt/maven/bin/MVN/usr/bin/MVN
---> Using cache
---> 1 c4075a5d1e5
7/9 Step: COPY Settings. The XML/opt/maven/conf/Settings. The XML
---> Using cache
---> D6b7dad9c6fa
8/9 Step: ADD the hello/hello
---> Using cache
---> Aa647c613f0d
9/9 Step: RUN CD/hello & amp; & MVN clean install - Dmaven. Wagon. HTTP. SSL. The insecure=true - Dmaven. Wagon. HTTP. SSL. Allowall=true
---> Using cache
---> 975 f3a411c7b
Successfully built 975 f3a411c7b
+ docker ps - a
+ grep -i maven
Fab707d12db9 csphere/maven: 3.3.3 "/usr/bin/supervis... "9 minutes line Created maven
+ docker rm -f maven
Maven
+ docker create -- the name maven csphere/maven: 3.3.3
60 cd1520f536fc66f6f301515e2ff412537a57e6636fda21a7449f4adbd8736a
+ docker cp maven:/hello/target/hello.html war/var/jenkins_home/workspace/Java - app/hello,
+ docker build -t 192.168.181.129:5000/csphere/hello: 1.0/var/jenkins_home/workspace/Java - app/hello,
Sending the build context to Docker daemon 3.687 MB

Step: a quarter FROM csphere/tomcat: 7.0.55
[91 m # 1 build Executing the trigger...
[0 mstep 1/1: ADD ${APP_DIR}
---> Using cache
---> 437 d8c75fff9
Step by 2/4: MAINTAINER Carson, C.J.Z eong & lt; [email protected] & gt;
---> Using cache
---> 30 afb98ba885
Step three: ADD init/init
---> Using cache
---> D3b03948f722
Step 4/4: ENTRYPOINT/init/scripts/run
---> Using cache
---> Ec3189b35758
Successfully built ec3189b35758
+ docker push 192.168.181.129:5000/csphere/hello: 1.0
The push refers to a repository 192.168.181.129:5000/csphere/hello,
Cdd07f66369a: Preparing
9 ac87f67de12: Preparing
F728a99fd601: Preparing
Ed46f8ae79d8: Preparing
D01a6606b390: Preparing
B7c650f35997: Preparing
Fde9df803484: Preparing
01 ec24d052f5: Preparing
871820 fa8a8e: Preparing
D07747dbfbbd: Preparing
1945 b6a751a8: Preparing
555 cede19b88: Preparing
Ef884ade28d6: Preparing
01 ec24d052f5: Waiting
871820 fa8a8e: Waiting
D07747dbfbbd: Waiting
1945 b6a751a8: Waiting
555 cede19b88: Waiting
Ef884ade28d6: Waiting
Fde9df803484: Waiting
B7c650f35997: Waiting
D01a6606b390: Layer already exists
Cdd07f66369a: Layer already exists
Ed46f8ae79d8: Layer already exists
F728a99fd601: Layer already exists
B7c650f35997: Layer already exists
9 ac87f67de12: Layer already exists
Fde9df803484: Layer already exists
01 ec24d052f5: Layer already exists
1945 b6a751a8: Layer already exists
555 cede19b88: Layer already exists
871820 fa8a8e: Layer already exists
D07747dbfbbd: Layer already exists
Ef884ade28d6: Layer already exists
1.0: digest: sha256:14 f217c7f4462ad756cd90c36cfdf504fc4324ead665e4b784b2699fab3a3fad size: 3040
+ docker ps - a
+ grep -i hello
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related