diff --git a/.tekton/odh-codeflare-operator-v2-17-pull-request.yaml b/.tekton/odh-codeflare-operator-v2-17-pull-request.yaml index 793f232be..b63a1c5a3 100644 --- a/.tekton/odh-codeflare-operator-v2-17-pull-request.yaml +++ b/.tekton/odh-codeflare-operator-v2-17-pull-request.yaml @@ -7,8 +7,10 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "rhoai-2.17" && !matches(source_branch, "^konflux/references") && !matches(source_branch, "^konflux/component-updates") - creationTimestamp: + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch + == "rhoai-2.17" && !matches(source_branch, "^konflux/references") && !matches(source_branch, + "^konflux/component-updates") + creationTimestamp: null labels: appstudio.openshift.io/application: rhoai-v2-17 appstudio.openshift.io/component: odh-codeflare-operator-v2-17 @@ -63,11 +65,13 @@ spec: name: output-image type: string - default: . - description: Path to the source code of an application's component from where to build image. + description: Path to the source code of an application's component from where + to build image. name: path-context type: string - default: Dockerfile - description: Path to the Dockerfile inside the context specified by parameter path-context + description: Path to the Dockerfile inside the context specified by parameter + path-context name: dockerfile type: string - default: "false" @@ -87,7 +91,8 @@ spec: name: prefetch-input type: string - default: "" - description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively. + description: Image tag expiration time, time values could be something like + 1h, 2d, 3w for hours, days, and weeks, respectively. name: image-expires-after - default: "false" description: Build a source image. @@ -468,7 +473,8 @@ spec: optional: true - name: netrc optional: true - taskRunTemplate: {} + taskRunTemplate: + serviceAccountName: build-pipeline-odh-codeflare-operator-v2-17 workspaces: - name: git-auth secret: diff --git a/.tekton/odh-codeflare-operator-v2-17-push.yaml b/.tekton/odh-codeflare-operator-v2-17-push.yaml index 1f328d6d5..26edb4ca7 100644 --- a/.tekton/odh-codeflare-operator-v2-17-push.yaml +++ b/.tekton/odh-codeflare-operator-v2-17-push.yaml @@ -1,18 +1,16 @@ -# comment for dummy trigger apiVersion: tekton.dev/v1 kind: PipelineRun metadata: annotations: + build.appstudio.openshift.io/build-nudge-files: build/operator-nudging.yaml build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/codeflare-operator?rev={{revision}} build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml" - pipelinesascode.tekton.dev/on-cel-expression: | - event == "push" - && target_branch == "rhoai-2.17" - && ( !".tekton/**".pathChanged() || ".tekton/odh-codeflare-operator-v2-17-push.yaml".pathChanged() ) - creationTimestamp: + pipelinesascode.tekton.dev/on-cel-expression: "event == \"push\" \n&& target_branch + == \"rhoai-2.17\"\n&& ( !\".tekton/**\".pathChanged() || \".tekton/odh-codeflare-operator-v2-17-push.yaml\".pathChanged() + )\n" + creationTimestamp: null labels: appstudio.openshift.io/application: rhoai-v2-17 appstudio.openshift.io/component: odh-codeflare-operator-v2-17 @@ -56,7 +54,7 @@ spec: - name: send-slack-notification params: - name: message - value: "$(tasks.rhoai-init.results.slack-message-failure-text)" + value: $(tasks.rhoai-init.results.slack-message-failure-text) - name: secret-name value: rhoai-konflux-secret - name: key-name @@ -74,7 +72,7 @@ spec: - input: $(tasks.status) operator: in values: - - "Failed" + - Failed params: - description: Source Repository URL name: git-url @@ -87,11 +85,13 @@ spec: name: output-image type: string - default: . - description: Path to the source code of an application's component from where to build image. + description: Path to the source code of an application's component from where + to build image. name: path-context type: string - default: Dockerfile - description: Path to the Dockerfile inside the context specified by parameter path-context + description: Path to the Dockerfile inside the context specified by parameter + path-context name: dockerfile type: string - default: "false" @@ -111,7 +111,8 @@ spec: name: prefetch-input type: string - default: "" - description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively. + description: Image tag expiration time, time values could be something like + 1h, 2d, 3w for hours, days, and weeks, respectively. name: image-expires-after - default: "true" description: Build a source image. @@ -146,20 +147,23 @@ spec: - name: rhoai-init params: - name: pipelinerun-name - value: "$(context.pipelineRun.name)" + value: $(context.pipelineRun.name) taskSpec: + metadata: {} results: - description: Notification text to be posted to slack name: slack-message-failure-text + spec: null steps: - - image: quay.io/rhoai-konflux/alpine:latest - name: rhoai-init + - computeResources: {} env: - name: slack_message valueFrom: secretKeyRef: - name: rhoai-konflux-secret key: slack-component-failure-notification + name: rhoai-konflux-secret + image: quay.io/rhoai-konflux/alpine:latest + name: rhoai-init script: | pipelinerun_name=$(params.pipelinerun-name) target_branch={{target_branch}} @@ -190,6 +194,8 @@ spec: value: $(params.rebuild) - name: skip-checks value: $(params.skip-checks) + runAfter: + - rhoai-init taskRef: params: - name: name @@ -199,8 +205,6 @@ spec: - name: kind value: task resolver: bundles - runAfter: - - rhoai-init - name: clone-repository params: - name: url @@ -544,7 +548,8 @@ spec: optional: true - name: netrc optional: true - taskRunTemplate: {} + taskRunTemplate: + serviceAccountName: build-pipeline-odh-codeflare-operator-v2-17 workspaces: - name: git-auth secret: