Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: example task script traps #1457

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions integration-tests/tasks/konflux-e2e-tests-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading