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

Unable to find credential

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ansible-tower-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.126
      Ansible Tower Plugin 0.8.5
    • Similar Issues:

      Description

      I have problem with the plugin when I want to use credentials other then the default.

      The credential id is 11

      "id": 11,
      "type": "credential",
      "url": "/api/v2/credentials/11/",
      

      The name of the credential is:
      "Secret Server MS Michal"

      "name": "Secret Server MS Michal"
      

       

      Does not matter if the ID or a Name is used in the configuration, the plugin is not able to find the credential in the Tower:

      Beginning Ansible Tower Run on Prod
      Requesting tower to run job template 37
      ERROR: Unable to request job template invocation Unable to find credential Secret Server MS Michal: Unable to get any results when looking up Secret Server MS Michal
      

      or

      ERROR: Unable to request job template invocation Credential 11 does not exist in tower
      

        Attachments

          Activity

          Hide
          johnwestcottiv John Westcott added a comment -

          My thought was that we would have one credential(s) filed in jenkins which would take a comma delimited list. We could then parse the list, lookup the credentials and based on their credential types determine if they should be passed in as credential, vault_credential or extra_credentials. It looks like in the upcoming version of Tower instead of splitting them out into different categories we can just pass a single field called credentials and Tower will split them out. 

          Show
          johnwestcottiv John Westcott added a comment - My thought was that we would have one credential(s) filed in jenkins which would take a comma delimited list. We could then parse the list, lookup the credentials and based on their credential types determine if they should be passed in as credential, vault_credential or extra_credentials. It looks like in the upcoming version of Tower instead of splitting them out into different categories we can just pass a single field called credentials and Tower will split them out. 
          Hide
          johnwestcottiv John Westcott added a comment -

          The could should be all set but I need to setup some environments to test the change on. If I commit the code to GitHub would you be able to download, build and test the plugin as well?

          Show
          johnwestcottiv John Westcott added a comment - The could should be all set but I need to setup some environments to test the change on. If I commit the code to GitHub would you be able to download, build and test the plugin as well?
          Hide
          mmt m t added a comment -

          John Westcott I have not done any builds of plugins for Jenkins so I'm not sure if I'll be of any help. I can definitely test it, when it's available through Jenkins though.

          Show
          mmt m t added a comment - John Westcott I have not done any builds of plugins for Jenkins so I'm not sure if I'll be of any help. I can definitely test it, when it's available through Jenkins though.
          Hide
          johnwestcottiv John Westcott added a comment -

          Sorry for the delay in getting this out, I had some vacation at the end of June. Please test out version 8.6.0 and let me know if you run into an issues. If not, please let me know and I an close this ticket.

          Show
          johnwestcottiv John Westcott added a comment - Sorry for the delay in getting this out, I had some vacation at the end of June. Please test out version 8.6.0 and let me know if you run into an issues. If not, please let me know and I an close this ticket.
          Hide
          matthew_ctr_winfield Matthew Winfield added a comment - - edited

          John Westcott should multiple credential support be available in version 0.9.1?

          Also how would you specify multiple credentials in a pipeline job? I currently have a use case where I need to define 2 credentials for a job that I am trying to run from Jenkins with this plugin.

          Show
          matthew_ctr_winfield Matthew Winfield added a comment - - edited John Westcott should multiple credential support be available in version 0.9.1? Also how would you specify multiple credentials in a pipeline job? I currently have a use case where I need to define 2 credentials for a job that I am trying to run from Jenkins with this plugin.

            People

            Assignee:
            johnwestcottiv John Westcott
            Reporter:
            mmt m t
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: