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

Refactor build.sh initial lines and include SHELL_ON_ERRORS #1191

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

j-rivero
Copy link
Contributor

The PR mainly implement the option to use SHELL_ON_ERRORS variable to define a trap in the build.sh script that will allow a local run of it that permits the jump into a shell inside the container if something fails. Relevant lines are in jenkins-scripts/docker/lib/_common_scripts.bash. This should help with #923 .

To avoid code duplication all over the place the PR also refactor the creation of the initial lines in build.sh to be in a single function include shebang, SHELL_ON_ERRORS, set -ex and timing.

Tested it in: Build Status

@j-rivero j-rivero merged commit c41059a into master Nov 4, 2024
@j-rivero j-rivero deleted the jrivero/support_shell_on_errors branch November 4, 2024 16:46
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.

2 participants