-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: ansible-plugin
-
None
-
Environment:Jenkins 2.164.1, Job DSL 1.72, Ansible plugin 1.0. Jenkins runs on Linux Redhat.
Given a Jenkins installation with the latest Job DSL and Ansible plugin, as far as I understand the following DSL code should generate a Jenkins job with two 'Invoke Ansible Playbook' build steps. But it doesn't: it creates the two steps just fine, but the 'Invoke Ansible Playbook' checkbox remains disabled for both generated steps.
Note that all other supported chechboxes and fields work just fine.
job('reproducer-job') { Â description('Reproducer dsl seed job') Â steps { Â Â ansiblePlaybook('test-host-key-checking-false.yml') { Â Â Â inventoryPath('test-inventory.ini') Â Â Â hostKeyChecking(false) Â Â } Â Â ansiblePlaybook('test-host-key-checking-true.yml') { Â Â Â inventoryPath('test-inventory.ini') Â Â Â hostKeyChecking(true) Â Â } Â } }
Â