Good day. I'm building on Jenkins 2.0 with pipelines and jenkinsfiles from SCM to achieve continuous delivery for my project.
However I'm facing issues with groovy workflow to source my environment variables for ansible. I'm running Ansible from source so I need to run: $ source ansible/hacking/env-setup However when I run this in my Jenkinsfile: stage "deploy" sh 'source /opt/ansible/hacking/env-setup" sh 'ansible --version' My environent variables from env-setup are gone. How would one include envs from setup script to env.PATH? env-setup setups python dependencies and correct paths. You can check out the environment script from: https://raw.githubusercontent.com/ansible/ansible/devel/hacking/env-setup Any hints how to work out this? Best regards, t-m -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/457a6cf4-2f48-4711-bea8-e48227f9ac3d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.