Skip to content

Commit

Permalink
Fix skip downgrade test for OSP nightly updates
Browse files Browse the repository at this point in the history
Initially based on PR title which did not work as expected. Now based on
source_branch, confirmed working on both new PR (create and update) and
/test comment.
  • Loading branch information
enarha authored and Roming22 committed Feb 5, 2024
1 parent 3b297d9 commit f519536
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .tekton/pipeline-service-upgrade-test-ocp-414.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ spec:
value: "{{ revision }}"
- name: target_branch
value: "{{ target_branch }}"
- name: pr_title
value: "{{ body.pull_request.title }}"
- name: source_branch
value: "{{ source_branch }}"
timeouts:
pipeline: "1h30m0s"
workspaces:
Expand Down
10 changes: 5 additions & 5 deletions .tekton/pipeline/test-pipeline-service-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- name: repo_url
- name: revision
- name: target_branch
- name: pr_title
- name: source_branch
timeouts:
finally: "0h30m0s"
workspaces:
Expand Down Expand Up @@ -112,9 +112,9 @@ spec:
taskRef:
name: deploy-pipeline-service
when:
- input: "$(params.pr_title)"
- input: "$(params.source_branch)"
operator: notin
values: ["[DO-NOT-MERGE] Automated change to update OSP nightly"]
values: ["ci-update-osp-nightly"]
runAfter:
- "test-upgrade"
workspaces:
Expand All @@ -131,9 +131,9 @@ spec:
taskRef:
name: test-pipeline-service
when:
- input: "$(params.pr_title)"
- input: "$(params.source_branch)"
operator: notin
values: ["[DO-NOT-MERGE] Automated change to update OSP nightly"]
values: ["ci-update-osp-nightly"]
runAfter:
- "downgrade-pipeline-service"
params:
Expand Down

0 comments on commit f519536

Please sign in to comment.