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

Ansible plugin not reading additionalParameters from pipeline

    Details

    • Similar Issues:

      Description

      When creating an ansible playbook job from a jenkinsfile the additionalParameters is not getting passed into the job.  The other parameters here all work fine.

       

      ansiblePlaybook(
      {{ playbook: 'config/site/site_aws.yml',}}
      {{ inventory: '/var/lib/jenkins/ec2.py',}}
      {{ credentialsId: 'credID',}}
      {{ additionalParameters: '--check',}}
      {{ limit: 'tag_Client_us1:tag_Client_us2:tag_client_us3:tag_Client_us4:tag_Client_shared:&tag_Release_stag:&us-east-1',}}
      {{ colorized: true)}}

        Attachments

          Activity

          tomw2245 Tom Weeks created issue -
          escoem Emilio Escobar made changes -
          Field Original Value New Value
          Assignee Jean-Christophe Sirot [ sirot ] Emilio Escobar [ escoem ]
          Show
          escoem Emilio Escobar added a comment - it seems to be extras instead of addtionalParameters https://github.com/jenkinsci/ansible-plugin/blob/master/src/main/java/org/jenkinsci/plugins/ansible/workflow/AnsiblePlaybookStep.java#L322

            People

            • Assignee:
              escoem Emilio Escobar
              Reporter:
              tomw2245 Tom Weeks
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: