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

Clean up temporary config files at the very end, not before post-build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be nice if Config File Provider temporary configuration files stuck around for the entire lifetime of a job execution, instead of being cleaned up before the post-build tasks. I just tried to use a maven settings file in a Sonar post-build action, but the temporary file was gone by that time. I confirmed it did exist during the build process (by cat-ting it in a regular build step).

      I've worked around this by having the plugin put the file in an explicit location in the workspace for now, and using it from there.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java
          http://jenkins-ci.org/commit/config-file-provider-plugin/4de756a2338d2f87135c56ea5c9741f92cfcd976
          Log:
          [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java http://jenkins-ci.org/commit/config-file-provider-plugin/4de756a2338d2f87135c56ea5c9741f92cfcd976 Log: [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_config-file-provider-plugin #36
          [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build (Revision 4de756a2338d2f87135c56ea5c9741f92cfcd976)

          Result = SUCCESS
          imod :
          Files :

          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_config-file-provider-plugin #36 [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build (Revision 4de756a2338d2f87135c56ea5c9741f92cfcd976) Result = SUCCESS imod : Files : src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java
          http://jenkins-ci.org/commit/config-file-provider-plugin/4236d26f52fdf42a4555a83f1e72cd62d3e0d716
          Log:
          [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFilesEnvironment.java http://jenkins-ci.org/commit/config-file-provider-plugin/4236d26f52fdf42a4555a83f1e72cd62d3e0d716 Log: [FIXED JENKINS-12823] Clean up temporary config files at the very end, not before post-build

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              oeuftete oeuftete
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: