Deepomatic / dmake

DMake is a tool to manage micro-service based applications
MIT License
36 stars 3 forks source link

Abort old builds for some branches #517

Closed S4ckBr closed 2 years ago

S4ckBr commented 2 years ago

Description

Abort old builds on Jenkins jobs for some branches.

This follows up on #485.

What it does:

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

S4ckBr commented 2 years ago

On a PR branch old build is correctly aborted. On the main branch, if DEFAULT_ABORT_OLD_BUILDS_ON_BRANCHES is empty, nothing is triggered. The old build is aborted when I set DEFAULT_ABORT_OLD_BUILDS_ON_BRANCHES='main'. On a new branch, nothing is triggered if DEFAULT_ABORT_OLD_BUILDS_ON_BRANCHES is empty. The old build is aborted when DEFAULT_ABORT_OLD_BUILDS_ON_BRANCHES is corretly set.