Skip to content

Commit 4bb39b3

Browse files
authored
Merge branch 'release-1.8' into cherry-pick-1521-to-release-1.8
2 parents 7240338 + 48e5763 commit 4bb39b3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

integration-tests/tasks/start-pipelines.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@ spec:
101101
102102
if [[ "${GIT_REPO}" = "tssc-cli" ]]; then
103103
REPO_ORG=$(jq -r '.git.source_repo_org' <<< $JOB_SPEC)
104-
BRANCH=$(jq -r '.git.source_repo_branch' <<< $JOB_SPEC)
104+
# Extract the repository name from the source_repo_url
105+
SOURCE_REPO_URL=$(jq -r '.git.source_repo_url' <<< $JOB_SPEC)
106+
REPO=$(basename "$SOURCE_REPO_URL" .git)
107+
# Extract the branch name from the source_repo_branch
108+
SOURCE_REPO_BRANCH=$(jq -r '.git.source_repo_branch' <<< $JOB_SPEC)
109+
BRANCH="${SOURCE_REPO_BRANCH##refs/heads/}"
105110
else
106111
REPO_ORG="redhat-appstudio"
112+
REPO="tssc-cli"
107113
BRANCH="main"
108114
fi
109115
if [[ "$MODE" == "periodic" ]]; then
@@ -166,7 +172,7 @@ spec:
166172
"--serviceaccount" "konflux-integration-runner"
167173
)
168174
echo "Starting pipeline with testplan (${#testplan_b64} chars): ${testplan_b64:0:50}..."
169-
pipeline_run=$(tkn pipeline start -f https://raw.githubusercontent.com/$REPO_ORG/tssc-cli/refs/heads/$BRANCH/integration-tests/pipelines/tssc-cli-e2e.yaml "${tkn_params[@]}")
175+
pipeline_run=$(tkn pipeline start -f https://raw.githubusercontent.com/$REPO_ORG/$REPO/refs/heads/$BRANCH/integration-tests/pipelines/tssc-cli-e2e.yaml "${tkn_params[@]}")
170176
# Construct console URL for the new PipelineRun
171177
CONSOLE_URL="${KONFLUX_URL}/ns/${KONFLUX_NAMESPACE}/applications/${KONFLUX_APPLICATION_NAME}/pipelineruns/${pipeline_run}"
172178
echo "Started new pipelinerun: ${CONSOLE_URL}"

0 commit comments

Comments
 (0)