From 1ab0df584184d7e8f32a2c2e8fd279f157610de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 24 Nov 2020 12:53:09 +0100 Subject: turris: allow more precise selection of job groups --- jobs/turris.run | 18 +++++++++++++++--- 1 file 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 -- cgit v1.2.3