github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/documentation/docs/steps/pipelineStashFiles.md (about) 1 # ${docGenStepName} 2 3 ## ${docGenDescription} 4 5 ## Prerequisites 6 7 none 8 9 ## ${docGenParameters} 10 11 Details: 12 13 The step is stashing files before and after the build. This is due to the fact, that some of the code that needs to be stashed, is generated during the build (TypeScript for NPM). 14 15 | stash name | mandatory | prerequisite | pattern | 16 |---|---|---|---| 17 |buildDescriptor|no| |includes: `**/pom.xml, **/.mvn/**, **/assembly.xml, **/.swagger-codegen-ignore, **/package.json, **/requirements.txt, **/setup.py, **/whitesource_config.py, **/mta*.y*ml, **/.npmrc, **/whitesource.*.json, **/whitesource-fs-agent.config, Dockerfile, **/VERSION, **/version.txt, **/Gopkg.*, **/dub.json, **/dub.sdl, **/build.sbt, **/sbtDescriptor.json, **/project/*`<br /> excludes: `**/node_modules/**/package.json`| 18 |checkmarx|no|Checkmarx is enabled|includes: `**/*.js, **/*.scala, **/*.go, **/*.d, **/*.di`<br /> excludes: `**/*.mockserver.js, node_modules/**/*.js`| 19 |classFiles|no| |includes: `**/target/classes/**/*.class, **/target/test-classes/**/*.class` <br />excludes: `''`| 20 |deployDescriptor|no| |includes: `**/manifest*.y*ml, **/*.mtaext.y*ml, **/*.mtaext, **/xs-app.json, helm/**, *.y*ml`<br />exclude: `''`| 21 |git|no| |includes: `**/gitmetadata/**`<br />exludes: `''`| 22 |opensourceConfiguration|no| |includes: `**/srcclr.yml, **/vulas-custom.properties, **/.nsprc, **/.retireignore, **/.retireignore.json, **/.snyk`<br />excludes: `''`| 23 |pipelineConfigAndTests|no| |includes: `.pipeline/*.*`<br />excludes: `''`| 24 |securityDescriptor|no| |includes: `**/xs-security.json`<br />exludes: `''`| 25 |sonar|no| |includes: `**/jacoco*.exec, **/sonar-project.properties`<br />exludes: `''`| 26 |tests|no| |includes: `**/pom.xml, **/*.json, **/*.xml, **/src/**, **/node_modules/**, **/specs/**, **/env/**, **/*.js`<br />excludes: `''`| 27 28 !!! note "Overwriting default stashing behavior" 29 It is possible to overwrite the default behavior of the stashes using the parameters `stashIncludes` and `stashExcludes` , e.g. 30 31 * `stashIncludes: [buildDescriptor: '**/mybuild.yml]` 32 * `stashExcludes: [tests: '**/NOTRELEVANT.*]` 33 34 ## ${docGenConfiguration} 35 36 ## ${docJenkinsPluginDependencies} 37 38 ## Explanation of pipeline step 39 40 Usage of pipeline step: 41 42 ```groovy 43 pipelineStashFiles script: this { 44 mavenExecute script: this, ... 45 } 46 ```