Skip to content

Commit

Permalink
Test RHTAP pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Ladislav Kolacek <[email protected]>
  • Loading branch information
lkolacek committed Oct 13, 2023
1 parent 80aecd8 commit 081ca3f
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .tekton/test-rhtap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: cachi2-test-rhtap-latest
annotations:
build.appstudio.redhat.com/commit_sha: "{{revision}}"
build.appstudio.redhat.com/target_branch: "{{target_branch}}"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-event: "[pull_request]"
pipelinesascode.tekton.dev/on-target-branch: "[main]"
spec:
params:
- name: revision
value: "{{revision}}"
- name: slack-webhook-notification-team
value: build
pipelineSpec:
params:
- name: revision
tasks:
- name: tag-with-latest
params:
- name: revision
value: "$(params.revision)"
timeout: "15m"
taskSpec:
params:
- name: revision
steps:
- name: tag-with-latest
image: registry.access.redhat.com/ubi9/skopeo:latest@sha256:23c9ed4af1f42614bdc56309452568b2110a67f23102f42f6a6582a63b63dcdb
script: |
#!/usr/bin/env bash
git clone https://github.com/containerbuildsystem/cachi2.git
cp --recursive --reflink cachi2 /tmp/cachi2-reflink
filefrag -v cachi2/LICENSE
filefrag -v /tmp/cachi2-reflink/LICENSE
rm -rf /tmp/cachi2-reflink
rm -rf cachi2
finally:
- name: slack-webhook-notification
taskRef:
resolver: bundles
params:
- name: name
value: slack-webhook-notification
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-slack-webhook-notification:0.1
- name: kind
value: task
when:
- input: $(tasks.status)
operator: in
values: ["Failed"]
params:
- name: message
value: |-
Tekton pipelineRun $(context.pipelineRun.name) failed.
See https://console-openshift-console.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/k8s/ns/tekton-ci/tekton.dev~v1beta1~PipelineRun/$(context.pipelineRun.name)
(Quick! It may disappear soon!)
- name: key-name
value: $(params.slack-webhook-notification-team)

0 comments on commit 081ca3f

Please sign in to comment.