Skip to content

Commit b7f0a0f

Browse files
committed
Add retry to smart_build of agent binaries
Requires https://review.lan.tribe29.com/c/checkmk_ci/+/134995 smart_build is doing the right thing and building as requested. The problem of in proper handling of failed builds is not solved and not part of this commit. This commit only fixes the early exit, thrown and self-catched by smart_build preventing a retry in the outer smart_stage Change-Id: I69f9d0dddb1d3428ea4618018fdc5b7ed94a5b9f
1 parent 205cec5 commit b7f0a0f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

buildscripts/scripts/utils/package_helper.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def provide_agent_binaries(Map args) {
142142
use_upstream_build: true,
143143
relative_job_name: details.relative_job_name,
144144
download: false,
145+
// set allow_retry true if retry is desired
146+
// smart_build would swallow the self-raised error and not cause a retry
147+
allow_retry: details.retry ? true : false,
145148
];
146149

147150
if (details.dependency_paths) {

0 commit comments

Comments
 (0)