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

Credentials Binding Plugin: File type intermittent permissions issue

      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

          [JENKINS-47685] Credentials Binding Plugin: File type intermittent permissions issue

          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

          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

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

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

          Filed under INFRA incorrectly, moved it to "Jenkins"

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

          Upgraded and unable to replicate in Jenkins 2.93, closing this

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

            Unassigned Unassigned
            thiyag Thiyag Krishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: