inside() sh does not work for armhf Docker image

9 views
Skip to first unread message

hce h

unread,
Sep 12, 2018, 10:11:03 AM9/12/18
to Jenkins Users
Hi,

If I run Jenkinsfile for debian Docker container, it would work fine, it could call inside() without error, but it could not run inside() for armhf Docker container. Any insight what was going on for armhf docker container?

Some online comments said because armhf did not support sh, it could only support bash, but I could not make it work even change the following inside():

arm.inside() {
sh '''#!/bin/bash -l
     echo "hello"
 }'''


The Jenkings log:
.......
Jenkins seems to be running inside container 
.....   
debian_build-GKBECTLK5VFZTEERVIZTJXC7I72XPCA26MJCHUVG63SOLTV6KNUA] Running shell script
Error response from daemon: Container 86aab2c121c676bfa21cc80a1128a6418d9c22d866378787ea4e75de3685fc84 is not running
process apparently never started in /var/jenkins_home/workspace/debian_build-GKBECTLK5VFZTEERVIZTJXC7I72XPCA26MJCHUVG63SOLTV6KNUA@tmp/durable-aff57d54
[Pipeline] }
$ docker stop --time=1 86aab2c121c676bfa21cc80a1128a6418d9c22d866378787ea4e75de3685fc84
$ docker rm -f 86aab2c121c676bfa21cc80a1128a6418d9c22d866378787ea4e75de3685fc84
[Pipeline] // withDockerContainer
[Pipeline] echo
Failed in build stage

Reply all
Reply to author
Forward
0 new messages