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

Cannot find user credentials when job is triggered with parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • credentials-plugin
    • None

      Given I have a job A
      And job A has Credentials Parameter
      And job A triggers job B sending job A's parameters
      And job B has Credentials Parameter
      And job B uses ssh-agent
      And job B uses Authorize Project plugin
      And job B uses Run as user who triggered the build
      When I build job A
      And choose a credential from logged in user
      Then job B should find the credentials

      The result unfortunately is this:

      Started by upstream project "jobA" build number 4
      originally caused by:
       Started by user Superman
      Running as Superman
      Building in workspace /app/jenkins/jobs/jobB/workspace
      FATAL: [ssh-agent] Could not find specified credentials
      [ssh-agent] Looking for ssh-agent implementation...
      [ssh-agent]   Java/JNR ssh-agent
      [ssh-agent] Started.
      

        1. log_manual
          2 kB
        2. log_downstream
          2 kB
        3. build_manual.xml
          3 kB
        4. build_downstream.xml
          8 kB

            stephenconnolly Stephen Connolly
            judoole Ole Christian Langfjæran
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: