trigger-job: Allow distribution listst
authorChristoph Berg <myon@debian.org>
Thu, 26 Sep 2024 13:38:02 +0000 (15:38 +0200)
committerChristoph Berg <myon@debian.org>
Thu, 26 Sep 2024 13:38:02 +0000 (15:38 +0200)
Syntax: -d 'trixie","sid' (not pretty but works)

jenkins/trigger-job

index c9a5c19fcae08769dd048248f5b4c7963d02fb2d..34864b0923640434c2cb798f29b4e7ee15baa6fb 100755 (executable)
@@ -16,7 +16,7 @@ while getopts "Aa:b:B:d:g:nq:r:u" opt ; do
     b) binnmu_reason="binnmu_reason=$OPTARG"
       : ${binnmu_version:=binnmu_version=1} ;;
     B) binnmu_version="binnmu_version=$OPTARG" ;;
-    d) distribution="distribution==\"$OPTARG\"" ;;
+    d) distribution="distribution in [\"$OPTARG\"]" ;;
     g) branch="branch=$OPTARG" ;;
     n) DEB_BUILD_OPTIONS="DEB_BUILD_OPTIONS=nocheck" ;;
     q) queue="queue=$OPTARG" ;;