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

ansible-tower-plugin not passing extra variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Not A Defect
    • Component/s: ansible-tower-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.109
      Ansible Tower Plugin 0.8.0

      Ansible Tower 3.2.1
      Ansible 2.5.0rc1
    • Similar Issues:

      Description

      The extra variables from Jenkins job are not being passed to Ansible Tower. Tried both Yaml and Json format for extra variables without success.

      Please see the screen shots attached.

        Attachments

          Activity

          Hide
          johnwestcottiv John Westcott added a comment -

          Can you send the output from the Jenkins job run?

          Also, can you confirm that you have the extra vars "prompt on launch" box is checked in Ansible Tower?

          Show
          johnwestcottiv John Westcott added a comment - Can you send the output from the Jenkins job run? Also, can you confirm that you have the extra vars "prompt on launch" box is checked in Ansible Tower?
          Hide
          mmt m t added a comment -

          John Westcott thanks for quick reply. Seems that this was a user error. I was not aware that the extra vars "prompt on launch" box needs to checked in Ansible Tower in order to pass the vars via API.

          It may be a good idea to add that information into the "help ( )" field in the plugin's job box.

          Show
          mmt m t added a comment - John Westcott  thanks for quick reply. Seems that this was a user error. I was not aware that the extra vars "prompt on launch" box needs to checked in Ansible Tower in order to pass the vars via API. It may be a good idea to add that information into the "help ( )" field in the plugin's job box.
          Hide
          johnwestcottiv John Westcott added a comment -

          Thanks for the follow up. I'll add a task for indicating that in the help entries. In addition, there should be a message in the jenkins job logs like:

          [WARNING]: Extra variables defined but prompt for variables on launch is not set in tower job

          Show
          johnwestcottiv John Westcott added a comment - Thanks for the follow up. I'll add a task for indicating that in the help entries. In addition, there should be a message in the jenkins job logs like: [WARNING] : Extra variables defined but prompt for variables on launch is not set in tower job
          Hide
          johnwestcottiv John Westcott added a comment -

          Can you test the 0.8.2 to validate that the notes now indicate that prompt on launch is required for the settings to take affect?

          Show
          johnwestcottiv John Westcott added a comment - Can you test the 0.8.2 to validate that the notes now indicate that prompt on launch is required for the settings to take affect?

            People

            Assignee:
            mmt m t
            Reporter:
            mmt m t
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: