fixeria submitted this change.
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(-)
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: jenkins-notifications@lists.osmocom.org laforge@gnumonks.org
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 change 42661. To unsubscribe, or for help writing mail filters, visit settings.