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

Credentials scoped at a folder level return `Null` when used in a checkmarx build step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • checkmarx-plugin
    • None

      Issue:

      When you create a credential at a folder level and try to use it during a build with a checkmarx build step, the credential returns `null` value which fails to give access.

      Steps to reproduce:

      Create username/password combination which only exists at a folder level

      Create freestyle build with a checkmarx build step requiring authentication inside of that folder

      Choose that folder scoped username/password at the job level

      Run the build and check the checkmarx logs

      Observe that `Anonymous` is trying to get access rather than the username/password combination

      Workaround:

      You can scope the credentials at the global level and this will work 100% fine

       

      I did see another JIRA which was having the same issue and it was resolved with [this PR|https://github.com/jenkinsci/pipeline-aws-plugin/pull/16].  Maybe there is something helpful you can get there? It looks like the credentials plugin dependency was bumped to a newer version which is not included in checkmarx

            sergeyk Sergey Kadaner
            ataylor Alex Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: