Skip to content

JENKINS-74995 Add rootless support - #325

Open
lnlrbr wants to merge 31 commits into
jenkinsci:masterfrom
lnlrbr:feature/rootless_mode
Open

JENKINS-74995 Add rootless support#325
lnlrbr wants to merge 31 commits into
jenkinsci:masterfrom
lnlrbr:feature/rootless_mode

Merge branch 'jenkinsci:master' into feature/rootless_mode

7dec078
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
ci.jenkins.io / Tests / linux-21 / Build (linux-21) failed Jul 21, 2025

org.jenkinsci.plugins.docker.workflow.declarative.DockerAgentTest.dockerPullLocalImage failed

org.jenkinsci.plugins.docker.workflow.declarative.DockerAgentTest.dockerPullLocalImage failed

Details

org.jenkinsci.plugins.docker.workflow.declarative.DockerAgentTest.dockerPullLocalImage

Expected: a string containing "Finished: SUCCESS"
     but: was "Started
Checking out git /tmp/junit16812573271911606104/junit15696248451685178908 into /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 to read Jenkinsfile
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
Commit message: "files"
First time build. Skipping changelog.
[Pipeline] Start of Pipeline
[Pipeline] node
Running on slave1 in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
Commit message: "files"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (build image)
[Pipeline] sh
+ docker build -t maven:3-eclipse-temurin-17-alpine .
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 89B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/ubuntu:noble
#2 DONE 0.1s
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/2] FROM docker.io/library/ubuntu:noble@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061
#4 DONE 0.0s

#5 [2/2] RUN echo 'HI THERE' > /hi-there
#5 CACHED

#6 exporting to image
#6 exporting layers done
#6 writing image sha256:c18c532ba69329fb0a1735c794df2e11c7639efc549f6b5f7033e062eb487f47 done
#6 naming to docker.io/library/maven:3-eclipse-temurin-17-alpine done
#6 DONE 0.0s
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (in built image)
[Pipeline] getContext
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker inspect -f . maven:3-eclipse-temurin-17-alpine
.
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withDockerContainer
slave1 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -v /tmp:/tmp -w "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:rw,z" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:rw,z" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** maven:3-eclipse-temurin-17-alpine cat
$ docker top 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b -eo pid,comm
[Pipeline] {
[Pipeline] sh
+ cat /hi-there
HI THERE
[Pipeline] sh
+ echo The answer is 42
The answer is 42
[Pipeline] }
$ docker stop --time=1 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
$ docker rm -f --volumes 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (in pulled image)
[Pipeline] node
Running on Jenkins in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4
[Pipeline] {
[Pipeline] checkout
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
Commit message: "files"
[Pipeline] withEnv
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker pull maven:3-eclipse-temurin-17-alpine
3-eclipse-temurin-17-alpine: Pulling from library/maven
3-eclipse-temurin-17-alpine: Pulling from library/maven
no matching manifest for linux/arm64/v8 in the manifest list entries
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
"
Stack trace
java.lang.AssertionError: 

Expected: a string containing "Finished: SUCCESS"
     but: was "Started
Checking out git /tmp/junit16812573271911606104/junit15696248451685178908 into /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 to read Jenkinsfile
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
Commit message: "files"
First time build. Skipping changelog.
[Pipeline] Start of Pipeline
[Pipeline] node
Running on slave1 in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
Commit message: "files"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (build image)
[Pipeline] sh
+ docker build -t maven:3-eclipse-temurin-17-alpine .
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 89B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/ubuntu:noble
#2 DONE 0.1s
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/2] FROM docker.io/library/ubuntu:noble@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061
#4 DONE 0.0s

#5 [2/2] RUN echo 'HI THERE' > /hi-there
#5 CACHED

#6 exporting to image
#6 exporting layers done
#6 writing image sha256:c18c532ba69329fb0a1735c794df2e11c7639efc549f6b5f7033e062eb487f47 done
#6 naming to docker.io/library/maven:3-eclipse-temurin-17-alpine done
#6 DONE 0.0s
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (in built image)
[Pipeline] getContext
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker inspect -f . maven:3-eclipse-temurin-17-alpine
.
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withDockerContainer
slave1 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -v /tmp:/tmp -w "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:rw,z" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:rw,z" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** maven:3-eclipse-temurin-17-alpine cat
$ docker top 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b -eo pid,comm
[Pipeline] {
[Pipeline] sh
+ cat /hi-there
HI THERE
[Pipeline] sh
+ echo The answer is 42
The answer is 42
[Pipeline] }
$ docker stop --time=1 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
$ docker rm -f --volumes 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (in pulled image)
[Pipeline] node
Running on Jenkins in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4
[Pipeline] {
[Pipeline] checkout
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
 > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4 # timeout=10
Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
 > git --version # timeout=10
 > git --version # 'git version 2.50.1'
 > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
Commit message: "files"
[Pipeline] withEnv
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker pull maven:3-eclipse-temurin-17-alpine
3-eclipse-temurin-17-alpine: Pulling from library/maven
3-eclipse-temurin-17-alpine: Pulling from library/maven
no matching manifest for linux/arm64/v8 in the manifest list entries
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
	at org.jvnet.hudson.test.JenkinsRule.assertLogContains(JenkinsRule.java:1485)
	at org.jvnet.hudson.test.JenkinsRule.waitForMessage(JenkinsRule.java:1549)
	at org.jenkinsci.plugins.pipeline.modeldefinition.AbstractModelDefTest$ExpectationsBuilder.go(AbstractModelDefTest.java:559)
	at org.jenkinsci.plugins.docker.workflow.declarative.DockerAgentTest.dockerPullLocalImage(DockerAgentTest.java:320)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:648)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Standard error
$ git --version
  50.573 [test4 #1] Started
  50.573 [test4 #1] Checking out git /tmp/junit16812573271911606104/junit15696248451685178908 into /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 to read Jenkinsfile
  50.573 [test4 #1] The recommended git tool is: NONE
  50.573 [test4 #1] No credentials specified
  50.573 [test4 #1] Cloning the remote Git repository
  50.573 [test4 #1] Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
  50.573 [test4 #1]  > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4@script/a980e7f2fb38b3e5743368d8354166671dce1517c25ceb0a511cf24bf48dd678 # timeout=10
  50.573 [test4 #1] Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
  50.573 [test4 #1]  > git --version # timeout=10
  50.573 [test4 #1]  > git --version # 'git version 2.50.1'
  50.573 [test4 #1]  > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
  50.573 [test4 #1]  > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
  50.573 [test4 #1]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
  50.623 [test4 #1] Avoid second fetch
  50.623 [test4 #1]  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  50.623 [test4 #1] Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
  50.623 [test4 #1]  > git config core.sparsecheckout # timeout=10
  50.623 [test4 #1]  > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  50.623 [test4 #1]  > git branch -a -v --no-abbrev # timeout=10
  50.623 [test4 #1]  > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  50.623 [test4 #1] Commit message: "files"
  50.623 [test4 #1] First time build. Skipping changelog.
  50.724 [test4 #1] [Pipeline] Start of Pipeline
  51.026 [test4 #1] [Pipeline] node
  51.076 [test4 #1] Running on slave1 in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4
  51.076 [test4 #1] [Pipeline] {
  51.127 [test4 #1] [Pipeline] stage
  51.127 [test4 #1] [Pipeline] { (Declarative: Checkout SCM)
  51.177 [test4 #1] [Pipeline] checkout
  51.278 [test4 #1] The recommended git tool is: NONE
  51.783 [test4 #1] No credentials specified
  51.833 [test4 #1] Cloning the remote Git repository
  52.438 [test4 #1] Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
  52.438 [test4 #1]  > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4 # timeout=10
  52.438 [test4 #1] Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
  52.438 [test4 #1]  > git --version # timeout=10
  52.438 [test4 #1]  > git --version # 'git version 2.50.1'
  52.438 [test4 #1]  > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
  52.438 [test4 #1]  > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
  52.438 [test4 #1]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
  52.488 [test4 #1] Avoid second fetch
  52.488 [test4 #1] Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
  52.690 [test4 #1] Commit message: "files"
  52.690 [test4 #1] [Pipeline] }
  52.740 [test4 #1] [Pipeline] // stage
  52.790 [test4 #1] [Pipeline] withEnv
  52.791 [test4 #1] [Pipeline] {
  52.841 [test4 #1] [Pipeline] stage
  52.841 [test4 #1] [Pipeline] { (build image)
  52.942 [test4 #1] [Pipeline] sh
  53.296 [test4 #1] + docker build -t maven:3-eclipse-temurin-17-alpine .
  53.296 [test4 #1] #0 building with "default" instance using docker driver
  53.296 [test4 #1] 
  53.296 [test4 #1] #1 [internal] load build definition from Dockerfile
  53.296 [test4 #1] #1 transferring dockerfile: 89B done
  53.296 [test4 #1] #1 DONE 0.0s
  53.296 [test4 #1] 
  53.296 [test4 #1] #2 [internal] load metadata for docker.io/library/ubuntu:noble
  53.296 [test4 #1] #2 DONE 0.1s
  53.497 [test4 #1]  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  53.497 [test4 #1]  > git config core.sparsecheckout # timeout=10
  53.497 [test4 #1]  > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  53.497 [test4 #1]  > git branch -a -v --no-abbrev # timeout=10
  53.497 [test4 #1]  > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  53.548 [test4 #1] 
  53.548 [test4 #1] #3 [internal] load .dockerignore
  53.548 [test4 #1] #3 transferring context: 2B done
  53.548 [test4 #1] #3 DONE 0.0s
  53.548 [test4 #1] 
  53.548 [test4 #1] #4 [1/2] FROM docker.io/library/ubuntu:noble@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061
  53.548 [test4 #1] #4 DONE 0.0s
  53.548 [test4 #1] 
  53.548 [test4 #1] #5 [2/2] RUN echo 'HI THERE' > /hi-there
  53.548 [test4 #1] #5 CACHED
  53.548 [test4 #1] 
  53.548 [test4 #1] #6 exporting to image
  53.548 [test4 #1] #6 exporting layers done
  53.548 [test4 #1] #6 writing image sha256:c18c532ba69329fb0a1735c794df2e11c7639efc549f6b5f7033e062eb487f47 done
  53.548 [test4 #1] #6 naming to docker.io/library/maven:3-eclipse-temurin-17-alpine done
  53.548 [test4 #1] #6 DONE 0.0s
  53.548 [test4 #1] [Pipeline] }
  53.649 [test4 #1] [Pipeline] // stage
  53.649 [test4 #1] [Pipeline] stage
  53.699 [test4 #1] [Pipeline] { (in built image)
  53.750 [test4 #1] [Pipeline] getContext
  53.951 [test4 #1] [Pipeline] isUnix
  53.951 [test4 #1] [Pipeline] withEnv
  53.951 [test4 #1] [Pipeline] {
  54.052 [test4 #1] [Pipeline] sh
  54.303 [test4 #1] + docker inspect -f . maven:3-eclipse-temurin-17-alpine
  54.303 [test4 #1] .
  54.354 [test4 #1] [Pipeline] }
  54.404 [test4 #1] [Pipeline] // withEnv
  54.455 [test4 #1] [Pipeline] withDockerContainer
  54.524 [test4 #1] slave1 does not seem to be running inside a container
  54.624 [test4 #1] $ docker run -t -d -u 1001:1001 -v /tmp:/tmp -w "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4:rw,z" -v "/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:/home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/agent-work-dirs/slave1/workspace/test4@tmp:rw,z" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** maven:3-eclipse-temurin-17-alpine cat
  54.877 [test4 #1] $ docker top 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b -eo pid,comm
  54.927 [test4 #1] [Pipeline] {
  54.978 [test4 #1] [Pipeline] sh
  55.280 [test4 #1] + cat /hi-there
  55.280 [test4 #1] HI THERE
  55.280 [test4 #1] [Pipeline] sh
  55.582 [test4 #1] + echo The answer is 42
  55.582 [test4 #1] The answer is 42
  55.582 [test4 #1] [Pipeline] }
  55.632 [test4 #1] $ docker stop --time=1 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
  56.790 [test4 #1] $ docker rm -f --volumes 6dd521a1e9782b5f9e794e6d9d409cf3299793071c20694080ffd6418c51fc4b
  56.840 [test4 #1] [Pipeline] // withDockerContainer
  56.890 [test4 #1] [Pipeline] }
  56.941 [test4 #1] [Pipeline] // stage
  56.991 [test4 #1] [Pipeline] stage
  56.991 [test4 #1] [Pipeline] { (in pulled image)
  57.093 [test4 #1] [Pipeline] node
  57.093 [test4 #1] Running on Jenkins in /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4
  57.143 [test4 #1] [Pipeline] {
  57.193 [test4 #1] [Pipeline] checkout
  57.193 [test4 #1] The recommended git tool is: NONE
  57.194 [test4 #1] No credentials specified
  57.194 [test4 #1] Cloning the remote Git repository
  57.194 [test4 #1] Cloning repository /tmp/junit16812573271911606104/junit15696248451685178908
  57.194 [test4 #1]  > git init /home/jenkins/agent/workspace/ns_docker-workflow-plugin_PR-325/target/tmp/j h8199939459726938045/workspace/test4 # timeout=10
  57.194 [test4 #1] Fetching upstream changes from /tmp/junit16812573271911606104/junit15696248451685178908
  57.194 [test4 #1]  > git --version # timeout=10
  57.194 [test4 #1]  > git --version # 'git version 2.50.1'
  57.194 [test4 #1]  > git fetch --tags --force --progress -- /tmp/junit16812573271911606104/junit15696248451685178908 +refs/heads/*:refs/remotes/origin/* # timeout=10
  57.244 [test4 #1]  > git config remote.origin.url /tmp/junit16812573271911606104/junit15696248451685178908 # timeout=10
  57.244 [test4 #1]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
  57.244 [test4 #1] Avoid second fetch
  57.244 [test4 #1]  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  57.244 [test4 #1] Checking out Revision 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 (refs/remotes/origin/master)
  57.244 [test4 #1]  > git config core.sparsecheckout # timeout=10
  57.244 [test4 #1]  > git checkout -f 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  57.244 [test4 #1]  > git branch -a -v --no-abbrev # timeout=10
  57.244 [test4 #1]  > git checkout -b master 7988d9a945f39cccbcd5e786f009be53f7ac6ca7 # timeout=10
  57.296 [test4 #1] Commit message: "files"
  57.296 [test4 #1] [Pipeline] withEnv
  57.346 [test4 #1] [Pipeline] {
  57.396 [test4 #1] [Pipeline] isUnix
  57.397 [test4 #1] [Pipeline] withEnv
  57.397 [test4 #1] [Pipeline] {
  57.447 [test4 #1] [Pipeline] sh
  57.749 [test4 #1] + docker pull maven:3-eclipse-temurin-17-alpine
  57.749 [test4 #1] 3-eclipse-temurin-17-alpine: Pulling from library/maven
  58.001 [test4 #1] 3-eclipse-temurin-17-alpine: Pulling from library/maven
  58.001 [test4 #1] no matching manifest for linux/arm64/v8 in the manifest list entries
  58.001 [test4 #1] [Pipeline] }
  58.101 [test4 #1] [Pipeline] // withEnv
  58.102 [test4 #1] [Pipeline] }
  58.202 [test4 #1] [Pipeline] // withEnv
  58.253 [test4 #1] [Pipeline] }
  58.303 [test4 #1] [Pipeline] // node
  58.454 [test4 #1] [Pipeline] }
  58.504 [test4 #1] [Pipeline] // stage
  58.555 [test4 #1] [Pipeline] }
  58.605 [test4 #1] [Pipeline] // withEnv
  58.656 [test4 #1] [Pipeline] }
  58.706 [test4 #1] [Pipeline] // node
  58.756 [test4 #1] [Pipeline] End of Pipeline
  58.846 [test4 #1] ERROR: script returned exit code 1
  58.846 [test4 #1] Finished: FAILURE
Standard out
[junit15696248451685178908] $ git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
Initialized empty Git repository in /tmp/junit16812573271911606104/junit15696248451685178908/.git/
[junit15696248451685178908] $ git add Dockerfile
[junit15696248451685178908] $ git commit --message=Dockerfile
[master (root-commit) 102ccb9] Dockerfile
 1 file changed, 4 insertions(+)
 create mode 100644 Dockerfile
[junit16812573271911606104] $ git version
git version 2.50.1
[junit15696248451685178908] $ git init --template=
Reinitialized existing Git repository in /tmp/junit16812573271911606104/junit15696248451685178908/.git/
[junit15696248451685178908] $ git branch -m master
[junit15696248451685178908] $ git add file
[junit15696248451685178908] $ git config user.name "Git SampleRepoRule"
[junit15696248451685178908] $ git config user.email gits@mplereporule
[junit15696248451685178908] $ git config init.defaultbranch master
[junit15696248451685178908] $ git config commit.gpgsign false
[junit15696248451685178908] $ git config tag.gpgSign false
[junit15696248451685178908] $ git commit --message=init
[master 8283387] init
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file
[junit15696248451685178908] $ git add Jenkinsfile
[junit15696248451685178908] $ git commit --message=files
[master 7988d9a] files
 1 file changed, 61 insertions(+)
 create mode 100644 Jenkinsfile