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

Support for WORKSPACE_CLEANUP jenkins param in Linux jobs #682

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Apr 1, 2022

Closes: #670

Introduce the Jenkins parameter WORKSPACE_CLEANUP enabled by default to clean all the workspace build/ directory in all the linux builds if it exists. DSL code is not nice but the default implementation of the postBuild is not synced with the current state of the plugin hence I've used the configure block that mimics the XML produced.

The cleanup is a bit tricky since we need to preserve the test_results directory.

The PostBuild block permits to run on FAILED or ABORTED builds, it is configure to act in all kind of scenarios.

I've been tested it in:

  1. -pr-any- when no cleanup is needed Build Status
  2. -pr-any- aborted with no build artifacts Build Status
  3. -pr-any- aborted with build artifacts: Build Status
  4. -debbuilder- with the parameter disabled, no cleanup Build Status
  5. -debbuiler- failed cleanup Build Status

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.

Consider to remove build/ directory from Jenkins runs
1 participant