We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1494fae + c833305 commit 1d5c5b4Copy full SHA for 1d5c5b4
integration-tests/tasks/get-rhads-config.yaml
@@ -28,7 +28,9 @@ spec:
28
set -euo pipefail
29
30
echo "Downloading rhads-config file:"
31
- GIT_REPO="$(jq -r '.git.repo // empty' <<< $JOB_SPEC)"
+ # Extract the repository name from the source_repo_url
32
+ SOURCE_REPO_URL=$(jq -r '.git.source_repo_url' <<< $JOB_SPEC)
33
+ GIT_REPO=$(basename "$SOURCE_REPO_URL" .git)
34
REPO_ORG=$(jq -r '.git.source_repo_org' <<< $JOB_SPEC)
35
# Determine the branch name for the curl command.
36
# If source_repo_branch starts with "refs/heads/", strip that prefix; otherwise, use as is.
0 commit comments