summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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