Skip to content

Commit 8836928

Browse files
committed
trying to fix revision
1 parent 48b04b2 commit 8836928

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.tekton/rapidast-integration-pipeline.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
annotations:
4+
# annotations:
55
# build.appstudio.openshift.io/repo: https://github.com/openshift/multiarch-tuning-operator?rev={{revision}}
6-
build.appstudio.redhat.com/commit_sha: '{{revision}}'
6+
# build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
# build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
88
# build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
# pipelinesascode.tekton.dev/max-keep-runs: "3"
@@ -20,8 +20,6 @@ spec:
2020
# this snapshot should be produced by the build pipeline and contain the containerImage we want to test with rapidast
2121
- name: SNAPSHOT
2222
type: string
23-
- name: revision
24-
type: string
2523
tasks:
2624
# we need an clean environment where we have permission to deploy k8s resources
2725
# this env will only provide namespace-admin, not cluster-admin. For components
@@ -134,7 +132,7 @@ spec:
134132
value: https://github.com/openshift/multiarch-tuning-operator
135133
# TODO change revision after merge
136134
- name: revision
137-
value: '{{revision}}'
135+
value: "$(context.pipelineRun.annotations['build.appstudio.redhat.com/commit_sha'])"
138136
- name: pathInRepo
139137
value: .tekton/rapidast-check.yaml
140138
params:

0 commit comments

Comments
 (0)