Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: configure jenkins to abort builds if new builds are triggered #5119

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

jdrueckert
Copy link
Member

Contains

Currently whenever we push new commits, a build is started. If another push comes in while that build is still running it will not be terminated. This can lead to multiple builds running for the same branch consuming resources and "blocking" build agents.
This PR configures Jenkins to abort a build if another build for the same branch is started, for instance through a new push.
This should reduce resource consumption and allow the build agents to be used for building other branches instead.

How to test

Shortly after each other push two empty commits and verify that the build job started for the first one is terminated on starting a build job for the second one.

@jdrueckert jdrueckert added Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Type: Improvement Request for or addition/enhancement of a feature Status: Needs Testing Requires to be tested in-game for reproducibility Size: S Small effort likely only affecting a single area and requiring little to no research labels Jul 13, 2023
@jdrueckert jdrueckert added this to the 2023 Revive - Milestone 1 milestone Jul 13, 2023
@jdrueckert jdrueckert self-assigned this Jul 13, 2023
@jdrueckert
Copy link
Member Author

jdrueckert commented Jul 13, 2023

Seems to work:
The lower one was stopped when the upper one was started.
image

@skaldarnar skaldarnar merged commit 85e64df into develop Jul 15, 2023
9 checks passed
@skaldarnar skaldarnar deleted the ci/disable-concurrent-builds branch July 15, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Size: S Small effort likely only affecting a single area and requiring little to no research Status: Needs Testing Requires to be tested in-game for reproducibility Type: Improvement Request for or addition/enhancement of a feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants