Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example task script traps
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Scerra <ascerra@redhat.com>
ascerra committed Nov 12, 2024
1 parent bb61356 commit 54fbc14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-tests/tasks/konflux-e2e-tests-task.yaml
Original file line number Diff line number Diff line change
@@ -91,6 +91,16 @@ spec:
export GINKGO_PROCS=$(params.ginkgo-procs)
export ORAS_CONTAINER=$(params.oras-container)
post_actions() {
# oras pull with retries
# gather new data
# security scan new data with infosec tool leaktk
# oras push with retries
exit "$exit_code"
}
trap post_actions EXIT
# Log into OpenShift
$(params.ocp-login-command)

0 comments on commit 54fbc14

Please sign in to comment.