Jenkinsfile syntax to change pipeline default docker run command

16 views
Skip to first unread message

hce h

unread,
Sep 13, 2018, 5:24:33 PM9/13/18
to Jenkins Users
Hi,

I successfully run following docker command locally:

docker run -it -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static arm32v7/debian:jessie /bin/bash

But Jenkins has a default docker run command in the pipleline:

docker run -t -d -u 1000:1000 -w /var/jenkins_home/workspace/jenkinsbuild-GKBECTLK5VFZTEERVIZTJXC7I72XPCA26MJCHUVG63SOLTV6KNUA --volumes-from f8ef7502d1b87996312d6a5fc40804a0f998179adcd627265cd6e5449f2a17af -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 ******** --entrypoint cat builddockerimage

How can I change the Jenkins docker run default command to add "-v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static"? To give the background reason why I need to add qemu is because Jenkins failed to run shell /bin/sh or /bin/bash in ARM Docker Image. Are there any Jenkins plubin to fix the pipleline to run ARM Docker Image?

Thank you


Reply all
Reply to author
Forward
0 new messages