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

Credentials Binding Plugin: File type intermittent permissions issue

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have a secrets file that is injected via withCredentials, the pipeline script is below.

      If this is run, it randomly succeeds or fails and is not consistent. When it fails, it appears that the directory it is using to reference the secrets file is not the primary workspace but a "tmp" directory.

      I tried multiple variants including clearing the workspace, putting it in a sub directory etc. but it still intermittently fails. Is there something wrong in the snippet below?

      node {
       withCredentials([file(credentialsId: 'test-confidential', variable: 'FILE')]) {
       def list = new XmlParser().parse(FILE)
       echo list.toString()
       }
      }

      I also noticed an (unanswered) stackoverflow post from 15 hours ago that appears to be something similar.

      Environment info:

      Jenkins LTS 2.73.2
      Credentials Binding Plugin 1.13
      Credentials Plugin 2.1.16

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          This has nothing to do with Jenkins project infrastructure.

          Please be considerate of our time and make an effort to file issues properly: https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

          Show
          danielbeck Daniel Beck added a comment - This has nothing to do with Jenkins project infrastructure. Please be considerate of our time and make an effort to file issues properly: https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue
          Hide
          thiyag Thiyag Krishna added a comment -

          Daniel Beck I am sorry, I am certain I chose "Jenkins" and not "infra", I'll try to reassign it.

          Show
          thiyag Thiyag Krishna added a comment - Daniel Beck I am sorry, I am certain I chose "Jenkins" and not "infra", I'll try to reassign it.
          Hide
          thiyag Thiyag Krishna added a comment -

          Filed under INFRA incorrectly, moved it to "Jenkins"

          Show
          thiyag Thiyag Krishna added a comment - Filed under INFRA incorrectly, moved it to "Jenkins"
          Hide
          thiyag Thiyag Krishna added a comment -

          Upgraded and unable to replicate in Jenkins 2.93, closing this

          Show
          thiyag Thiyag Krishna added a comment - Upgraded and unable to replicate in Jenkins 2.93, closing this

            People

            • Assignee:
              Unassigned
              Reporter:
              thiyag Thiyag Krishna
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: