I have been using the build-name-setter plugin (v1.3) for over a year now using the PROPFILE macro. The only issue I've had with it is that it fails the build if the PROPFILE is missing from the workspace (JENKINS-13509). Most of the time, the file exists because I have a post-build task that writes the file to the workspace with the value "BUILD_IN_PROGRESS" so that it's ready for the next build; however, intermittently and for unknown reasons, the properties file gets removed and the next build fails.
I am looking for a plugin that will allow me to execute a build step prior to the first time the build-name-setter plugin reads the properties file (which is right after checkout). That way, I can write the file with the value "BUILD_IN_PROGRESS", just as I do in my post-build task to ensure the file exists and doesn't fail the build. This will also alleviate me having to create the PROPFILE on all associated slaves each time I create a new job. Is the "pre-scm-buildstep" plugin my best option or is there another plugin more suitable for writing a file to the workspace just prior to when the build-name-setter plugin reads it? Thanks, Jeff -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
