Hi
I have a problem with level 3 task 3 in jenkins, below all the details, I saw other posts and tried the different solutions but it’s not working.
Started from command line by admin
[Pipeline] Start of Pipeline
[Pipeline] node
Running on stapp01 in /home/tony/workspace/nginx-container
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] git
The recommended git tool is: NONE
using credential sarah
Cloning the remote Git repository
Cloning repository http://git.stratos.xfusioncorp.com/sarah/web.git
> git init /home/tony/workspace/nginx-container # timeout=10
Fetching upstream changes from http://git.stratos.xfusioncorp.com/sarah/web.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials
> git fetch --tags --force --progress -- http://git.stratos.xfusioncorp.com/sarah/web.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url http://git.stratos.xfusioncorp.com/sarah/web.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision b41b12eb59a55e33de419d9e489eb4a00b48f6b5 (refs/remotes/origin/master)
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f b41b12eb59a55e33de419d9e489eb4a00b48f6b5 # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git checkout -b master b41b12eb59a55e33de419d9e489eb4a00b48f6b5 # timeout=10
Commit message: "Added dockerfile"
First time build. Skipping changelog.
[Pipeline] sh
+ docker build -t stregi01.stratos.xfusioncorp.com:5000/nginx:latest .
Sending build context to Docker daemon 62.46kB
Step 1/2 : FROM nginx:stable-alpine3.17-slim
stable-alpine3.17-slim: Pulling from library/nginx
9398808236ff: Pulling fs layer
708173787fc8: Pulling fs layer
b5b131b8c886: Pulling fs layer
ab69664ce136: Pulling fs layer
d7f3c29ebbc5: Pulling fs layer
80b006910f42: Pulling fs layer
d7f3c29ebbc5: Waiting
80b006910f42: Waiting
b5b131b8c886: Verifying Checksum
b5b131b8c886: Download complete
708173787fc8: Download complete
9398808236ff: Verifying Checksum
9398808236ff: Download complete
ab69664ce136: Verifying Checksum
ab69664ce136: Download complete
80b006910f42: Verifying Checksum
80b006910f42: Download complete
d7f3c29ebbc5: Verifying Checksum
d7f3c29ebbc5: Download complete
9398808236ff: Pull complete
708173787fc8: Pull complete
b5b131b8c886: Pull complete
ab69664ce136: Pull complete
d7f3c29ebbc5: Pull complete
80b006910f42: Pull complete
Digest: sha256:b8132df8c2fc73f4c1e7ce434c1ff19b134818e8173cd5e8f79c55a5f635d7e5
Status: Downloaded newer image for nginx:stable-alpine3.17-slim
---> 517cf77e51a3
Step 2/2 : COPY index.html /usr/share/nginx/html/
---> c64e1de87551
Successfully built c64e1de87551
Successfully tagged stregi01.stratos.xfusioncorp.com:5000/nginx:latest
[Pipeline] sh
+ docker push stregi01.stratos.xfusioncorp.com:5000/nginx:latest
The push refers to repository [stregi01.stratos.xfusioncorp.com:5000/nginx]
b1bcbf0734be: Preparing
2b60bbe779e0: Preparing
4c6a1307a10b: Preparing
bb0903fd6f90: Preparing
9c01e5b3bd66: Preparing
57b608dd7b54: Preparing
36b50b131297: Preparing
57b608dd7b54: Waiting
36b50b131297: Waiting
bb0903fd6f90: Pushed
2b60bbe779e0: Pushed
b1bcbf0734be: Pushed
9c01e5b3bd66: Pushed
4c6a1307a10b: Pushed
57b608dd7b54: Pushed
36b50b131297: Pushed
latest: digest: sha256:4c47dc3d90661f2bccb6c3a3aa25367a8cbd4a109739aefcf45c3593b70c3dac size: 1775
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
node('stapp01'){
stage('Build'){
git credentialsId: 'sarah', url: 'http://git.stratos.xfusioncorp.com/sarah/web.git'
sh '''docker build -t stregi01.stratos.xfusioncorp.com:5000/nginx:latest .'''
sh '''docker push stregi01.stratos.xfusioncorp.com:5000/nginx:latest'''
}
}
please help