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

Ansible tower plugin 0.9.0 issue with Tower 3.3.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: ansible-tower-plugin
    • Labels:
      None
    • Environment:
      ansible-tower-plugin: 0.9
      Tower: 3.3.1
    • Similar Issues:
    • Released As:
      Completed

      Description

      When we run a tower job from jenkins, we are seeing this error message:

      ERROR: Unable to request job template invocation Tower received a bad request (400 response code)
      {"credential":["Incorrect type. Expected pk value, received unicode."],"credentials":["Incorrect type. Expected pk value, received unicode."]}

      we are running the job with the following:

      ansibleTower towerServer: 'tower', jobTemplate: '55',
      inventory: '14', credential: '12', importTowerLogs: true

      Does the credential need to be an integer? It seems like it is sending the credential the wrong way over the API.

        Attachments

          Activity

          Hide
          johnwestcottiv John Westcott added a comment -

          This should be fixed in the 0.9.1 release, thanks for the contribution.

          Show
          johnwestcottiv John Westcott added a comment - This should be fixed in the 0.9.1 release, thanks for the contribution.

            People

            Assignee:
            johnwestcottiv John Westcott
            Reporter:
            james_mcshane James McShane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: