Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: postbuildscript-plugin
-
Labels:None
-
Similar Issues:
Description
The Postbuildscript plugin alters the order of post-build actions when executed.
Steps to reproduce :
- On a matrix configuration project
- Add a post build action of Postbuildscript
- Configure it to invoke an ant script (In my case the ant script is creating a file I want to add as an artifact)
- Add a second post build action e.g. Archive the artifacts
- Save the configuration with the post build script being first in order
- Run the job
- The archive the artifacts build step will occur first
- Re-open the job configuration and the post build action script will have moved from being the first.
This seems to be due to the PostBuildScriptListener which is putting any Post Build publishers to the end of the publishers list. No documentation as to why this might have been necessary. I've removed this and re-build locally and the configuration order is now respected.