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 ?

          [JENKINS-28528] Secret File missing during post build Action

          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.

          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.

          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

          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

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

              Created:
              Updated: