summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-11-24 12:53:09 +0100
committerKarel Kočí <cynerd@email.cz>2020-11-24 12:53:09 +0100
commit1ab0df584184d7e8f32a2c2e8fd279f157610de3 (patch)
tree72eae6e3603ede57e999293c3de7de8838eac99c
parenta52edff7ea8a8b831e88211063280b69153f42fe (diff)
downloadlaminar-cnf-1ab0df584184d7e8f32a2c2e8fd279f157610de3.tar.gz
laminar-cnf-1ab0df584184d7e8f32a2c2e8fd279f157610de3.tar.bz2
laminar-cnf-1ab0df584184d7e8f32a2c2e8fd279f157610de3.zip
turris: allow more precise selection of job groups
-rwxr-xr-xjobs/turris.run18
1 files changed, 15 insertions, 3 deletions
diff --git a/jobs/turris.run b/jobs/turris.run
index dc07fd9..62d2b46 100755
--- a/jobs/turris.run
+++ b/jobs/turris.run
@@ -3,7 +3,19 @@
set -eu
cd "$(dirname "$(readlink -f "$0")")"
-for job in turris-*.run; do
- #laminarc queue "$job"
- echo laminarc queue "$job"
+pattern="turris-*.run"
+if [ -n "${BOARD+x}" ]; then
+ if [ -n "${BRANCH+x}" ]; then
+ pattern="turris-$BRANCH-$BOARD.run"
+ else
+ pattern="turris-*-$BOARD.run"
+ fi
+else
+ if [ -n "${BRANCH+x}" ]; then
+ pattern="turris-${BRANCH}-*.run"
+ fi
+fi
+
+for job in $pattern; do
+ laminarc queue "$job"
done