Skip to content

Commit

Permalink
Make upload-results task optional
Browse files Browse the repository at this point in the history
  • Loading branch information
averevki committed Aug 12, 2024
1 parent 310c171 commit b683dbc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
description: Report Portal Project to store test results (e.g. testsuite, nightly-testsuite)
name: rp-project
type: string
- default: true
description: Upload test results to Report Portal
name: upload-results
type: string
tasks:
- name: kubectl-login
params:
Expand Down Expand Up @@ -64,6 +68,10 @@ spec:
- name: shared-workspace
finally:
- name: upload-results
when:
- input: $(params.upload-results)
operator: in
values: ["true"]
params:
- name: launch-name
value: $(params.launch-name)
Expand Down
5 changes: 5 additions & 0 deletions nightly/eventlistener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
value: nightly
- name: rp-project
value: nightly-testsuite
- name: upload-results
value: "true"
template:
spec:
params:
Expand All @@ -28,6 +30,7 @@ spec:
- name: additional-env
- name: launch-name
- name: rp-project
- name: upload-results
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
Expand All @@ -49,6 +52,8 @@ spec:
value: $(tt.params.launch-name)
- name: rp-project
value: $(tt.params.rp-project)
- name: upload-results
value: $(tt.params.upload-results)
workspaces:
- name: shared-workspace
volumeClaimTemplate:
Expand Down
8 changes: 8 additions & 0 deletions nightly/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
description: Report Portal Project to store test results (e.g. testsuite, nightly-testsuite)
name: rp-project
type: string
- default: true
description: Upload test results to Report Portal
name: upload-results
type: string
tasks:
- name: kubectl-login
params:
Expand Down Expand Up @@ -102,6 +106,10 @@ spec:
- name: shared-workspace
finally:
- name: upload-results
when:
- input: $(params.upload-results)
operator: in
values: ["true"]
params:
- name: launch-name
value: $(params.launch-name)
Expand Down

0 comments on commit b683dbc

Please sign in to comment.