-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Blocker
-
Component/s: docker-slaves-plugin
-
None
-
Environment:Jenkins 2.60.3
Docker Slaves Plugin 1.0.7
Having a job with just a shell command
echo "Hello World"
When using a prebuild image, everything seems ok. But when using "Main build container" as "Build Dockerfile"
Dockerfile containing:
Â
FROM jenkins/jenkins:lts RUN touch /tmp/test
Â
Â
I get inconsistent results. Most of the time it fails without explicit error.
Here are the different results I obtained.
Most interesting seems to be the last one...
00:00:11.116Â > git tag -l # timeout=10
00:00:11.547 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/asroot, origin/merge-requests/1)
00:00:11.559 Commit message: "Use -y on apt"
00:00:11.563Â > git config core.sparsecheckout # timeout=10
00:00:11.566Â > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746
00:00:11.572Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
00:00:11.576Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
00:00:14.307 Hello World
00:00:14.307 + echo Hello World
00:00:14.530 Finished: SUCCESS
00:00:08.540 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/asroot, origin/merge-requests/1) 00:00:08.562 Commit message: "Use -y on apt" 00:00:08.566Â > git config core.sparsecheckout # timeout=10 00:00:08.570Â > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746 00:00:08.579Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10 00:00:08.585Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10 00:00:11.697 Build step 'Execute shell' marked build as failure 00:00:12.197 Finished: FAILURE
00:00:09.068Â > git tag -l # timeout=10 00:00:09.728 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/merge-requests/1, origin/asroot) 00:00:09.740 Commit message: "Use -y on apt" 00:00:09.745Â > git config core.sparsecheckout # timeout=10 00:00:09.747Â > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746 00:00:09.753Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10 00:00:09.758Â > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10 00:00:13.461 rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "process_linux.go:81: executing setns process caused \"exit status 40\"" 00:00:13.461Â 00:00:13.465 Build step 'Execute shell' marked build as failure 00:00:13.715 Finished: FAILURE