I have the following configuration for cleanWs in my scripted pipeline JENKINSFILE.
cleanWs( patterns: [ [ pattern: "**/*", type: "INCLUDE" ], [ pattern: "**/*.txt", type: "EXCLUDE" ] ] )
Expectation:
All files are deleted, but .txt file are kept.
Actual:
All files are deleted.
What do I get wrong?
I switch the order of INCLUDE/EXCLUDE and simplified my pattern to just match .txt files … but the files are still deleted 🙁
New contributor
Stefan Vallaster is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.