Re: Accessing build environment variables from Playbook using Ansible Plugin
- command: echo "{{ lookup('env','PATH') }}" > register: default_path > - command: echo "{{ lookup('env','WORKSPACE') }}" > register: jenkins_job_workspace > > Hope it helps. > > Le mardi 12 juillet
Accessing build environment variables from Playbook using Ansible Plugin
Hi, Starting from version 0.5 of the Ansible Plugin the build environment variables are available during ansible execution. I'm currently trying to get the job workspace path inside my playbook (which I provide using job DSL) the following way: --- - hosts: all tasks: - command: echo "$P