1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/documentation/docs/steps/pipelineStashFiles.md
Maximilian Lenkeit 06f63bc5de remove opa5 stash (#897)
* remove opa5 stash

* remove OPA5 test cases

* remove reference to opa5 stash
2019-11-07 11:02:27 +01:00

2.2 KiB

${docGenStepName}

${docGenDescription}

Prerequsites

none

${docGenParameters}

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
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/*
excludes: **/node_modules/**/package.json
checkmarx no Checkmarx is enabled includes: **/*.js, **/*.scala, **/*.go, **/*.d, **/*.di
excludes: **/*.mockserver.js, node_modules/**/*.js
classFiles no includes: **/target/classes/**/*.class, **/target/test-classes/**/*.class
excludes: ''
deployDescriptor no includes: **/manifest*.y*ml, **/*.mtaext.y*ml, **/*.mtaext, **/xs-app.json, helm/**, *.y*ml
exclude: ''
git no includes: **/gitmetadata/**
exludes: ''
opensourceConfiguration no includes: **/srcclr.yml, **/vulas-custom.properties, **/.nsprc, **/.retireignore, **/.retireignore.json, **/.snyk
excludes: ''
pipelineConfigAndTests no includes: .pipeline/*.*
excludes: ''
securityDescriptor no includes: **/xs-security.json
exludes: ''
sonar no includes: **/jacoco*.exec, **/sonar-project.properties
exludes: ''
tests no includes: **/pom.xml, **/*.json, **/*.xml, **/src/**, **/node_modules/**, **/specs/**, **/env/**, **/*.js
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.*]`

${docGenConfiguration}

${docJenkinsPluginDependencies}

Explanation of pipeline step

Usage of pipeline step:

pipelineStashFiles script: this {
  mavenExecute script: this, ...
}