Skip to content

Commit

Permalink
Handover bisect comment to triggered jobs to skip baseline check
Browse files Browse the repository at this point in the history
CMK-21372

Change-Id: Ib6cc08af98cce1bae5d33574a1485dd6e7c3614d
  • Loading branch information
JonasScharpf committed Jan 22, 2025
1 parent b8bc0f3 commit 87f3421
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 4 deletions.
4 changes: 4 additions & 0 deletions buildscripts/scripts/build-cmk-deliverables.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def main() {
booleanParam(name: "DISABLE_CACHE", value: params.DISABLE_CACHE),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: params.CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
]
);
copyArtifacts(
Expand Down Expand Up @@ -136,6 +137,7 @@ def main() {
booleanParam(name: "DISABLE_CACHE", value: params.DISABLE_CACHE),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: params.CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
]
);
}
Expand Down Expand Up @@ -169,6 +171,7 @@ def main() {
booleanParam(name: "DISABLE_CACHE", value: params.DISABLE_CACHE),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: params.CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
]
);
copyArtifacts(
Expand Down Expand Up @@ -258,6 +261,7 @@ def main() {
booleanParam(name: "DISABLE_CACHE", value: params.DISABLE_CACHE),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: params.CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
]
);
}
Expand Down
7 changes: 6 additions & 1 deletion buildscripts/scripts/test-composition-single-f12less.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def main() {

dir("${checkout_dir}") {
stage("Fetch Checkmk package") {
single_tests.fetch_package(edition: edition, distro: distro, download_dir: download_dir);
single_tests.fetch_package(
edition: edition,
distro: distro,
download_dir: download_dir,
bisect_comment: params.CIPARAM_BISECT_COMMENT
);
}
try {
stage("Run `make ${make_target}`") {
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-composition.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def main() {
stringParam(name: "CUSTOM_GIT_REF", value: effective_git_ref),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
],
);
copyArtifacts(
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-gui-e2e-f12less.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def main() {
CUSTOM_GIT_REF: cmd_output("git rev-parse HEAD"),
EDITION: edition,
DISTRO: distro,
CIPARAM_BISECT_COMMENT: params.CIPARAM_BISECT_COMMENT,
],
dest: download_dir,
);
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-integration-packages.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def main() {
stringParam(name: "CUSTOM_GIT_REF", value: effective_git_ref),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
],
);
copyArtifacts(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ def main() {

dir("${checkout_dir}") {
stage("Fetch Checkmk package") {
single_tests.fetch_package(edition: edition, distro: distro, download_dir: download_dir);
single_tests.fetch_package(
edition: edition,
distro: distro,
download_dir: download_dir,
bisect_comment: params.CIPARAM_BISECT_COMMENT
);
}
try {
stage("Run `make ${make_target}`") {
Expand Down
7 changes: 6 additions & 1 deletion buildscripts/scripts/test-integration-single-f12less.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ def main() {

dir("${checkout_dir}") {
stage("Fetch Checkmk package") {
single_tests.fetch_package(edition: edition, distro: distro, download_dir: download_dir);
single_tests.fetch_package(
edition: edition,
distro: distro,
download_dir: download_dir,
bisect_comment: params.CIPARAM_BISECT_COMMENT
);
}
try {
stage("Run `make ${make_target}`") {
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-plugins-piggyback.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def main() {
CUSTOM_GIT_REF: cmd_output("git rev-parse HEAD"),
EDITION: edition,
DISTRO: distro,
CIPARAM_BISECT_COMMENT: params.CIPARAM_BISECT_COMMENT,
],
dest: download_dir,
);
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-plugins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def main() {
CUSTOM_GIT_REF: cmd_output("git rev-parse HEAD"),
EDITION: edition,
DISTRO: distro,
CIPARAM_BISECT_COMMENT: params.CIPARAM_BISECT_COMMENT,
],
dest: download_dir,
);
Expand Down
7 changes: 6 additions & 1 deletion buildscripts/scripts/test-update-single-f12less.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ def main() {

dir("${checkout_dir}") {
stage("Fetch Checkmk package") {
single_tests.fetch_package(edition: edition, distro: distro, download_dir: download_dir);
single_tests.fetch_package(
edition: edition,
distro: distro,
download_dir: download_dir,
bisect_comment: params.CIPARAM_BISECT_COMMENT
);
}
try {
stage("Run `make ${make_target}`") {
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-update.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def main() {
stringParam(name: "CUSTOM_GIT_REF", value: CUSTOM_GIT_REF),
stringParam(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: "CIPARAM_CLEANUP_WORKSPACE", value: CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
],
);

Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/test-xss-crawl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def main() {
CUSTOM_GIT_REF: cmd_output("git rev-parse HEAD"),
EDITION: edition,
DISTRO: distro,
CIPARAM_BISECT_COMMENT: params.CIPARAM_BISECT_COMMENT,
],
dest: download_dir,
);
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/trigger-all-nightlies-fast.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def main() {
def job_parameters = [
stringParam(name: 'CIPARAM_OVERRIDE_BUILD_NODE', value: params.TRIGGER_CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: 'CUSTOM_GIT_REF', value: effective_git_ref),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
];

def override_editions = params.EDITIONS.trim() ?: "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def main() {
CUSTOM_GIT_REF: custom_git_ref,
EDITION: edition,
DISTRO: distro,
CIPARAM_BISECT_COMMENT: params.CIPARAM_BISECT_COMMENT,
],
build_params_no_check: [
CIPARAM_OVERRIDE_BUILD_NODE: params.CIPARAM_OVERRIDE_BUILD_NODE,
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/trigger-cmk-build-chain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def main() {
booleanParam(name: 'BUILD_CLOUD_IMAGES', value: true),
stringParam(name: 'CUSTOM_GIT_REF', value: effective_git_ref),
stringParam(name: 'CIPARAM_CLEANUP_WORKSPACE', value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
// PUBLISH_IN_MARKETPLACE will only be set during the release process (aka bw-release)
booleanParam(name: 'PUBLISH_IN_MARKETPLACE', value: false),
];
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/trigger-test-gui-e2e.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def main() {
stringParam(name: 'CUSTOM_GIT_REF', value: effective_git_ref),
stringParam(name: 'CIPARAM_OVERRIDE_BUILD_NODE', value: params.CIPARAM_OVERRIDE_BUILD_NODE),
stringParam(name: 'CIPARAM_CLEANUP_WORKSPACE', value: params.CIPARAM_CLEANUP_WORKSPACE),
stringParam(name: "CIPARAM_BISECT_COMMENT", value: params.CIPARAM_BISECT_COMMENT),
]
);
}
Expand Down
1 change: 1 addition & 0 deletions buildscripts/scripts/utils/single_tests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def fetch_package(Map args) {
CUSTOM_GIT_REF: cmd_output("git rev-parse HEAD"),
EDITION: args.edition,
DISTRO: args.distro,
CIPARAM_BISECT_COMMENT: args.bisect_comment,
],
build_params_no_check: [
CIPARAM_OVERRIDE_BUILD_NODE: build_node,
Expand Down

0 comments on commit 87f3421

Please sign in to comment.