stash-pullrequest-builder-plugin icon indicating copy to clipboard operation
stash-pullrequest-builder-plugin copied to clipboard

Post Build Tasks blocking concurrent builds

Open jeremybarr opened this issue 9 years ago • 3 comments

If I am running basically a PR build/merge job on multiple nodes, the post build tasks wait on any previous jobs running before they will finish. In the case of PR builds, there is not always the need to wait on previous builds when running concurrently on multiple nodes since they may be from different PRs. Would it be possible to add an option to not have the post build tasks wait on checkpoints?

jeremybarr avatar Feb 25 '16 05:02 jeremybarr

Not sure if this is possible. Worth looking into if someone wants to take this up

nemccarthy avatar Mar 04 '16 02:03 nemccarthy

@nemccarthy: You need to change the return value of getRequiredMonitorService() in StashPostBuildComment from BuildStepMonitor.BUILD to BuildStepMonitor.NONE. See http://javadoc.jenkins-ci.org/hudson/tasks/BuildStep.html#getRequiredMonitorService--

So your code must look like this public BuildStepMonitor getRequiredMonitorService() { return BuildStepMonitor.NONE; }

erdnussflips avatar Apr 23 '18 15:04 erdnussflips

What @ErdnussFlipS wrote is correct. This problem has been affecting many plugins you can check the fix for sloccount with links to other fixes here: https://github.com/jenkinsci/sloccount-plugin/commit/d205dc8a50f4f488657fac2ee293235fc31d1712

jakub-bochenski avatar Jun 25 '18 08:06 jakub-bochenski