Skip to content

Clean up Jenkins log#452

Merged
evaneschneider merged 17 commits intocholla-hydro:devfrom
mabruzzo:Jenkins-test-tweak
Nov 21, 2025
Merged

Clean up Jenkins log#452
evaneschneider merged 17 commits intocholla-hydro:devfrom
mabruzzo:Jenkins-test-tweak

Conversation

@mabruzzo
Copy link
Copy Markdown
Collaborator

As I understand it, the Jenkins sh step (for executing shell scripts) sets the interpretter based on the presences of a shebang. When no shebang is present, it defaults to using the system default shell with the -xe flag. For the uninitiated,

  • -x enables tracing mode
  • -e tells the script to exit on errors

The reference page can be found here:
https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#sh-shell-script

Ordinarily, setting the -x flag is a really nice choice. But, because the shell configuration script does so much work on the CRC cluster, it ends up polluting the logs.

Consequently, this commit tries to specify a shebang to launch the shell shell scripts without enabling tracing mode.

As I understand it, the Jenkins `sh` step (for executing shell scripts)
sets the interpretter based on the presences of a shebang. When no
shebang is present, it defaults to using the system default shell with
the `-xe` flag. For the uninitiated,
* `-x` enables tracing mode
* `-e` tells the script to exit on errors

The reference page can be found here:
https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#sh-shell-script

Ordinarily, setting the `-x` flag is a really nice choice. But, because
the shell configuration script does so much work on the CRC cluster, it
ends up polluting the logs.

Consequently, this commit tries to specify a shebang to launch the shell
shell scripts without enabling tracing mode.
@mabruzzo mabruzzo changed the title Test to see if we can clean up Jenkins log Clean up Jenkins log Sep 22, 2025
@evaneschneider
Copy link
Copy Markdown
Collaborator

Should this be closed now that #449 is merged?

@mabruzzo
Copy link
Copy Markdown
Collaborator Author

Uh, this is doing something slightly different. This is trying to reduce the amount of "garbage" printed in the log. I need to take another look at this (and resolve all of the newly created conflicts)

@evaneschneider evaneschneider merged commit 0e57c53 into cholla-hydro:dev Nov 21, 2025
15 checks passed
@mabruzzo mabruzzo deleted the Jenkins-test-tweak branch December 17, 2025 04:25
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