fixeria has uploaded this change for review. ( 
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, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/61/42661/1

diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index 0ef69ef..7ad72b0 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 HEAD | grep "Jenkins:" | grep -q'
     trigger:
     email: [email protected] [email protected]
     gerrit_url: 'https://gerrit.osmocom.org'
@@ -648,7 +649,8 @@
           cmd: |
             case "$JOB_TYPE" in
             "card-test")
-              {timeout_cmd} ./contrib/jenkins.sh
+              # skip tests requiring physical cards if commit message contains 
"Jenkins: skip-card-test"
+              {check_jenkins_mark} "skip-card-test" || {timeout_cmd} 
./contrib/jenkins.sh
               ;;
             *)
               {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: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I591717a2e2659c02447087dec23aa279cfd55551
Gerrit-Change-Number: 42661
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to