Skip to content

Commit

Permalink
Update pr-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 authored Jul 8, 2024
1 parent 17fc5f7 commit de784dc
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions konflux/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ spec:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
script: |
dnf -y install jq
echo -e "Example test task for the Snapshot:\n ${SNAPSHOT}"
// Run custom tests for the given Snapshot here
// After the tests finish, record the overall result in the RESULT variable
RESULT="SUCCESS"

// Output the standardized TEST_OUTPUT result in JSON form
TEST_OUTPUT=$(jq -rc --arg date $(date +%s) --arg RESULT "${RESULT}" --null-input \
'{result: $RESULT, timestamp: $date, failures: 0, successes: 1, warnings: 0}')
echo -n "${TEST_OUTPUT}" | tee $(results.TEST_OUTPUT.path)

echo -e "Running clowder PR check"
pwd
ls
./pr_check.sh

0 comments on commit de784dc

Please sign in to comment.