summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-07-02 15:51:58 +0200
committerdd <dd@wx.tnyzeq.icu>2024-07-02 16:05:30 +0200
commitddbba63f14348afcb4a76b8d2cbe16dc99b04332 (patch)
treeccea73d62d0e4821648c31d5ae9824f74f0f39b4
parent4913bbd06b9ce73453ff5667f4b195be75adcb0e (diff)
downloadvyos-jenkins-ddbba63f14348afcb4a76b8d2cbe16dc99b04332.tar.gz
vyos-jenkins-ddbba63f14348afcb4a76b8d2cbe16dc99b04332.zip
fixed default BRANCH value
-rw-r--r--auto/helper-logic6
-rwxr-xr-xmanual/seed-jobs.sh6
2 files changed, 8 insertions, 4 deletions
diff --git a/auto/helper-logic b/auto/helper-logic
index 236035b..7642c9a 100644
--- a/auto/helper-logic
+++ b/auto/helper-logic
@@ -47,8 +47,10 @@ elif [ "$BRANCH" == "equuleus" ]; then
EXCLUDED_DESCRIPTION="sagitta-only"
SELECTED_BRANCH_REGEX="equuleus"
else
- >&2 echo -e "${RED}Unknown branch: $SELECTED_BRANCH, please provide valid \$BRANCH (sagitta or equuleus)${NOCOLOR}"
- exit 1
+ if [ "$BRANCH" != "" ]; then
+ >&2 echo -e "${RED}Unknown branch: $SELECTED_BRANCH, please provide valid \$BRANCH (sagitta or equuleus)${NOCOLOR}"
+ exit 1
+ fi
fi
function PrintHeader {
diff --git a/manual/seed-jobs.sh b/manual/seed-jobs.sh
index b148a9b..a5a1f5f 100755
--- a/manual/seed-jobs.sh
+++ b/manual/seed-jobs.sh
@@ -67,8 +67,10 @@ if [ "$selectedBranch" == "sagitta" ]; then
elif [ "$selectedBranch" == "equuleus" ]; then
excludedDescription="sagitta-only"
else
- >&2 echo -e "ERROR: Unknown branch: $selectedBranch, please provide valid \$BRANCH (sagitta or equuleus)"
- exit 1
+ if [ "$selectedBranch" != "" ]; then
+ >&2 echo -e "ERROR: Unknown branch: $selectedBranch, please provide valid \$BRANCH (sagitta or equuleus)"
+ exit 1
+ fi
fi
if [[ "$mode" == "create" ]]; then