We're using Jenkins 2 on an Ubuntu 14.04 box and I'm trying out the new
Jenkinsfile stuff... something like this:
node('docker') {
stage "Prepare environment"
checkout scm
docker.image('geerlingguy/docker-ubuntu1604-ansible:latest').inside{
stage('Syntax Check') {
sh 'whoami'
sh 'echo $HOME'
sh 'ansible-playbook $PWD/tests/test.yml --syntax-check'
}
}
}
When Jenkins goes to run the "whoami" command, I can see the command it did
was:
docker run -t -d -u 1003:1003
The user ID of the Jenkins user on this machine is 1003, but I'm not sure why
it would be outputting that by default. Is there a way to turn it off?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a587a072-82b0-4fa9-bcf3-6bbd88615f0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.