jenkinsci / peass-ci-plugin

Jenkins plugin for peass to support performance measurement in CI
https://plugins.jenkins.io/peass-ci/
GNU Affero General Public License v3.0
4 stars 13 forks source link

Block Parallel Builds of Same Job #85

Closed DaGeRe closed 1 year ago

DaGeRe commented 2 years ago

What feature do you want to see added?

Peass creates a unique folder for each job, which saves cached data like regression test results and old measurement and RCA results. Therefore, starting builds of the same job in parallel is not possible.

One workaround is to add options { disableConcurrentBuilds() } to builds. Since this requires manual effort by the user and also disables the parallel execution of other plugins (e.g. code quality checks that run before Peass might be assumed to run in parallel), this is not a very nice solution.

Therefore, Peass should create a file .inUse in its temporary folder and wait with a job as long as .inUse is present.

Upstream changes

No response

DaGeRe commented 1 year ago

This should work, since

   @Override
   public BuildStepMonitor getRequiredMonitorService() {
      return BuildStepMonitor.BUILD;
   }

is already specified.