Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57306

Can't check "Disable the host SSH key check" in Ansible plugin through JobDSL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ansible-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.164.1, Job DSL 1.72, Ansible plugin 1.0. Jenkins runs on Linux Redhat.
    • Similar Issues:

      Description

      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)
          }
        }
      }

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              sirot Jean-Christophe Sirot
              Reporter:
              sadbunny bouke b
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: