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

Build name file cannot immediately be deleted from workspace after build

XMLWordPrintable

      This plugin is not immediately releasing a text file which it reads to set the build name.

      I have a Jenkins project which writes a string to a version.txt file in the root of the project's workspace during a post build step.  The https://plugins.jenkins.io/build-name-setter plugin successfully reads this file and assigns the build name, however, often the version.txt file cannot be removed from the workspace, seemingly because a process is holding onto the file.  An error is thrown if I attempt to manually wipe the workspace after the job completes.  If I wait X amount of time (maybe for other builds to complete on the Jenkins slave) the file is seemingly released and can be deleted.  No other jobs are utilizing the workspace where this file is located.

            le0 Lev Mishin
            dparson Dave Parson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: