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

ansible-tower-plugin not passing extra variables

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Not A Defect
    • ansible-tower-plugin
    • None
    • Jenkins ver. 2.109
      Ansible Tower Plugin 0.8.0

      Ansible Tower 3.2.1
      Ansible 2.5.0rc1

    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

          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?

          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?
          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

          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
          mmt m t added a comment -

          johnwestcottiv 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.

          mmt m t added a comment - johnwestcottiv  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.
          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?

          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?

          People

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

            Dates

              Created:
              Updated:
              Resolved: