diff --git a/tekton/release-pipeline.yaml b/tekton/release-pipeline.yaml index fc3cc6d5245..ec08c523306 100644 --- a/tekton/release-pipeline.yaml +++ b/tekton/release-pipeline.yaml @@ -43,6 +43,9 @@ spec: description: The path to the service account file within the release-secret workspace - name: serviceAccountImagesPath description: The path to the service account file or credentials within the release-images-secret workspace + - name: runTests + description: If set to something other than "true", skip the build and test tasks + default: "true" workspaces: - name: workarea description: The workspace where the repo will be cloned. @@ -104,6 +107,8 @@ spec: subpath: git - name: unit-tests runAfter: [precheck] + when: + - cel: "'$(params.runTests)' == 'true'" taskRef: resolver: bundles params: @@ -124,6 +129,8 @@ spec: subpath: git - name: build runAfter: [precheck] + when: + - cel: "'$(params.runTests)' == 'true'" taskRef: resolver: bundles params: