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

Secret File missing during post build Action

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello everyone,

      I have a job with a maven goal "clean install"
      In advanced option I set up the user settings.xml as follow
      ${userSettings.xml} where this variable is a binding from a secret file I created.

      During the maven build, the same file is used but with a different uuid
      clean install s D:--------\secretFiles\e9b970a0-46b8-482e-bc1b-aca37e28ec52\settings-jenkins.xml

      When the Sonar analysis comes, I still have the good user settings.xml

      mvn.bat s D:--------\secretFiles\e1d52a19-5538-4c7d-8e0c-a57392305597\settings-jenkins.xml org.codehaus.mojo:sonar-maven-plugin:2.5:sonar

      and unfortunately I get a

      java.io.FileNotFoundException: The specified user settings file does not exist: D:---------\secretFiles\e1d52a19-5538-4c7d-8e0c-a57392305597\settings-jenkins.xml

      Do you have an idea why ?

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          IIRC this a well-known design problem of the Sonar plugin, that it runs build steps after build wrappers have torn down the environment.

          Show
          jglick Jesse Glick added a comment - IIRC this a well-known design problem of the Sonar plugin, that it runs build steps after build wrappers have torn down the environment.
          Hide
          joshshinn Joshua Shinn added a comment -

          This actually boils down to an issue with the Credentials plugin deleting secret files at the end of the build sequence. I have filed a bug for it here: https://issues.jenkins-ci.org/browse/JENKINS-32283

          Show
          joshshinn Joshua Shinn added a comment - This actually boils down to an issue with the Credentials plugin deleting secret files at the end of the build sequence. I have filed a bug for it here: https://issues.jenkins-ci.org/browse/JENKINS-32283

            People

            Assignee:
            sonarteam Sonar Team
            Reporter:
            simondevineau Simon Devineau
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: