File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed
ansible/roles/operator-pipeline/templates/openshift Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -273,18 +273,20 @@ spec:
273273 - name : results
274274 workspace : results
275275
276- - name : verify-project-distribution
276+ - name : verify-project
277277 runAfter :
278278 - get-cert-project-related-data
279279 taskRef :
280- name : verify-project-distribution
280+ name : verify-project
281281 params :
282282 - name : pipeline_image
283283 value : " $(params.pipeline_image)"
284284 - name : project_distribution
285285 value : " $(tasks.get-cert-project-related-data.results.operator_distribution)"
286286 - name : organization
287287 value : " $(tasks.get-organization.results.organization)"
288+ - name : project_status
289+ value : " $(tasks.get-cert-project-related-data.results.project_status)"
288290
289291 # Merge user's registry tokens with service account credentials
290292 # used elsewhere by this pipeline.
@@ -512,7 +514,7 @@ spec:
512514 - yaml-lint
513515 - verify-pinned-digest
514516 - verify-changed-directories
515- - verify-project-distribution
517+ - verify-project
516518 taskRef :
517519 name : dockerfile-creation
518520 params :
Original file line number Diff line number Diff line change 3333 description : Current Certification status of the cert Project
3434 - name : github_usernames
3535 description : List of GitHub accounts with permissions allowing operator submission
36+ - name : project_status
37+ description : Status of the cert project - either archived or active
3638 workspaces :
3739 - name : source
3840 - name : results
8991 get_from_cp repository_name '.container.repository_name' | tee $(results.repo_name.path)
9092 get_from_cp org_id '.org_id' | tee $(results.org_id.path)
9193 get_from_cp operator_distribution '.operator_distribution' | tee $(results.operator_distribution.path)
94+ get_from_cp project_status '.project_status' | tee $(results.project_status.path)
9295
9396 # Exception, where function cannot be applied-
9497 # github usernames have the newline symbol changed to space
Original file line number Diff line number Diff line change 22apiVersion : tekton.dev/v1beta1
33kind : Task
44metadata :
5- name : verify-project-distribution
5+ name : verify-project
66spec :
77 description : >-
8- This task verifies that project with correct distribution method is used.
8+ This task verifies that project is not archived and the correct distribution
9+ method is used.
910 params :
1011 - name : pipeline_image
1112 description : The common pipeline image.
1213
1314 - name : organization
1415 description : |
15- Organization defined in the project config.yaml - either certified-operator or redhat-marketplace
16+ Organization defined in the project config.yaml - either
17+ certified-operator or redhat-marketplace
1618
1719 - name : project_distribution
1820 description : |
1921 Certification project distribution method.
22+
23+ - name : project_status
24+ description : |
25+ Certification project status - either archived or active
2026 steps :
27+ - name : verify-project-not-archived
28+ image : " $(params.pipeline_image)"
29+ env :
30+ - name : PROJECT_STATUS
31+ value : $(params.project_status)
32+ script : |
33+ #!/urs/bin/env bash
34+ set -xe -o pipefail
35+
36+ if [ "${PROJECT_STATUS}" = "archived" ]; then
37+ echo "This project is archived."
38+ exit 1
39+ fi
40+
2141 - name : verify-project-distribution
2242 image : " $(params.pipeline_image)"
2343 env :
You can’t perform that action at this time.
0 commit comments