This might be a feature request, if so pointers on how to request it would 
be helpful. I'd like to run an Ansible playbook from within Jenkins 
pipeline. It looks like the ansiblePlaybook plugin allows an installation 
parameter to be passed, but this must be set up globally. Is there any way 
to point it at a virtualenv without configuring the virtualenv globally? 
Basically, I'd like to do something like this:

stage 'Create virtualenv'
  sh 'virtualenv venv'
  sh 'venv/bin/pip install -r requirements.txt'


stage 'Run Ansible deploy'
  ansiblePlaybook(playbook: 'foo.yml', ansibleExecutable: 
'venv/bin/ansible-playbook')


-- 
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/42fd8fe9-c429-4763-be88-637e5a319a54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to