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

Cleanup hack/build-and-push.sh #986

Merged
merged 3 commits into from
May 10, 2024

Conversation

zregvart
Copy link
Member

@zregvart zregvart commented May 2, 2024

Fixes several issues with the hack/build-and-push.sh script. See individual commits for details.

@zregvart zregvart force-pushed the pr/cleanup-hack-and-push branch from e65699c to ceca0a0 Compare May 2, 2024 15:23
@zregvart zregvart enabled auto-merge May 2, 2024 17:23
@zregvart
Copy link
Member Author

zregvart commented May 6, 2024

/retest

@zregvart zregvart force-pushed the pr/cleanup-hack-and-push branch from ceca0a0 to 968a1f5 Compare May 9, 2024 09:22
@simonbaird
Copy link
Contributor

/retest

zregvart added 3 commits May 10, 2024 16:01
When `tkn bundle push` exits with code not equal to 0, due to `errexit`
being turned on (`set -e`) the script is terminated immediately without
retrying. This changes the logic so if the `tkn bundle push` succeeds
the retying while loop is stopped, i.e. the `&& break` branch is
executed. In case of errors the `&& break` branch is not executed and
the status of `tkn bundle push` is captured in the `status` variable,
the retrying `while` loop continues until `max_retries` is reached.
This is to to prevent globs and multiple shell words being interpreted
where one is expected.
@simonbaird simonbaird force-pushed the pr/cleanup-hack-and-push branch from 968a1f5 to f434af8 Compare May 10, 2024 20:01
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@simonbaird
Copy link
Contributor

I clicked the GitHub button to do a rebase.

@zregvart zregvart added this pull request to the merge queue May 10, 2024
Merged via the queue into konflux-ci:main with commit a490569 May 10, 2024
6 checks passed
@zregvart zregvart deleted the pr/cleanup-hack-and-push branch May 13, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants