2019-04-02 10:13:27 +02:00
# ${docGenStepName}
2018-06-01 12:33:06 +02:00
2019-04-02 10:13:27 +02:00
## ${docGenDescription}
2018-06-01 12:33:06 +02:00
2020-04-26 19:50:39 +02:00
## Prerequisites
2018-11-06 14:50:09 +02:00
2018-06-01 12:33:06 +02:00
none
2019-04-02 10:13:27 +02:00
## ${docGenParameters}
2018-06-01 12:33:06 +02:00
Details:
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).
| stash name | mandatory | prerequisite | pattern |
|---|---|---|---|
2019-07-04 11:08:32 +02:00
|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` |
2019-07-05 15:58:22 +02:00
|checkmarx|no|Checkmarx is enabled|includes: `**/*.js, **/*.scala, **/*.go, **/*.d, **/*.di` < br /> excludes: `**/*.mockserver.js, node_modules/**/*.js` |
2018-06-01 12:33:06 +02:00
|classFiles|no| |includes: `**/target/classes/**/*.class, **/target/test-classes/**/*.class` < br /> excludes: `''` |
|deployDescriptor|no| |includes: `**/manifest*.y*ml, **/*.mtaext.y*ml, **/*.mtaext, **/xs-app.json, helm/**, *.y*ml` < br /> exclude: `''` |
|git|no| |includes: `**/gitmetadata/**` < br /> exludes: `''` |
|opensourceConfiguration|no| |includes: `**/srcclr.yml, **/vulas-custom.properties, **/.nsprc, **/.retireignore, **/.retireignore.json, **/.snyk` < br /> excludes: `''` |
|pipelineConfigAndTests|no| |includes: `.pipeline/*.*` < br /> excludes: `''` |
|securityDescriptor|no| |includes: `**/xs-security.json` < br /> exludes: `''` |
|sonar|no| |includes: `**/jacoco*.exec, **/sonar-project.properties` < br /> exludes: `''` |
|tests|no| |includes: `**/pom.xml, **/*.json, **/*.xml, **/src/**, **/node_modules/**, **/specs/**, **/env/**, **/*.js` < br /> excludes: `''` |
!!! note "Overwriting default stashing behavior"
It is possible to overwrite the default behavior of the stashes using the parameters `stashIncludes` and `stashExcludes` , e.g.
* `stashIncludes: [buildDescriptor: '**/mybuild.yml]`
* `stashExcludes: [tests: '**/NOTRELEVANT.*]`
2019-04-02 10:13:27 +02:00
## ${docGenConfiguration}
2018-06-01 12:33:06 +02:00
2019-05-24 15:44:31 +02:00
## ${docJenkinsPluginDependencies}
2019-05-24 15:41:49 +02:00
2018-06-01 12:33:06 +02:00
## Explanation of pipeline step
Usage of pipeline step:
```groovy
pipelineStashFiles script: this {
2018-06-04 14:50:40 +02:00
mavenExecute script: this, ...
2018-06-01 12:33:06 +02:00
}
```