Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid errors when accessing variables client_prefix and BUILD_TAG #87

Merged
merged 1 commit into from
Jul 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion trigger-openqa_in_openqa
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ tw_group_id="${tw_group_id:-"1"}"
openqa_cli="${openqa_cli:-"openqa-cli"}"
arch="${arch:-"x86_64"}"
machine="${machine:-"64bit"}"
build_tag=${BUILD_TAG:-}
client_prefix=${client_prefix:-}

# shellcheck source=/dev/null
. "$(dirname "$0")"/_common
Expand Down Expand Up @@ -55,7 +57,7 @@ find_latest_published_tumbleweed_image() {
${client_prefix} wget -c "$url" -O /var/lib/openqa/factory/hdd/"$qcow"
fi
# ensure the build tag conforms to coolo's unwritten rules for the openQA dashboard
build=$(echo "$BUILD_TAG" | sed -e "s/jenkins-trigger-openQA_in_openQA-/:/" -e "s/-/./g")
build=$(echo "$build_tag" | sed -e "s/jenkins-trigger-openQA_in_openQA-/:/" -e "s/-/./g")
}

trigger() {
Expand Down