fixeria has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ci/+/42661?usp=email )
Change subject: jobs/master-builds.yml: pysim: allow skipping card tests
......................................................................
jobs/master-builds.yml: pysim: allow skipping card tests
Skip tests requiring physical cards ("card-test") for commits
having a special marker in the COMMIT_MSG:
Jenkins: skip-card-tests
This speeds up the build verification significantly, and may be
useful for patches that do not modify the core logic (such as
documentation improvements and misc fixes).
Change-Id: I591717a2e2659c02447087dec23aa279cfd55551
---
M jobs/master-builds.yml
1 file changed, 7 insertions(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
dexter: Looks good to me, but someone else must approve
osmith: Looks good to me, but someone else must approve
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index 0ef69ef..fee8c57 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -86,6 +86,7 @@
timeout_cmd: '/usr/bin/timeout 30m'
wrapper_cmd: '{timeout_cmd} /osmo-ci/scripts/wrapper_core_bt_on_error.sh'
cmd: '{docker_run_ccache} {docker_img} {wrapper_cmd}
/build/contrib/jenkins.sh'
+ check_jenkins_mark: 'git show --summary --format=%B | grep "^Jenkins:" |
grep -q'
trigger:
email: [email protected] [email protected]
gerrit_url: 'https://gerrit.osmocom.org'
@@ -648,7 +649,12 @@
cmd: |
case "$JOB_TYPE" in
"card-test")
- {timeout_cmd} ./contrib/jenkins.sh
+ if {check_jenkins_mark} "skip-card-test"; then
+ # skip tests requiring physical cards
+ echo "GERRIT_PIPELINE_JOB_SKIPPED"
+ else
+ {timeout_cmd} ./contrib/jenkins.sh
+ fi
;;
*)
{docker_run} \
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/42661?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I591717a2e2659c02447087dec23aa279cfd55551
Gerrit-Change-Number: 42661
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>