1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00
sap-jenkins-library/resources/com.sap.piper/pipeline/cloudSdkJavaStashSettings.yml
Kevin Hudemann dc3bf0e68d
Cloud SDK: Update stash settings, stage defaults and containers map for a single call of integration stage (#2212)
This change updates the stash settings, stage defaults and the containers map to
allow a single call of `piperPipelineStageIntegration` in SAP Cloud SDK Pipeline.
2020-10-21 10:51:39 +02:00

83 lines
2.3 KiB
YAML

# This stage names are used for stashing and un-stashing of files
init:
unstash: []
stashes:
- name: "SOURCE"
includes: "**"
excludes: "**/.git/**, s4hana_pipeline/reports/**, s4hana_pipeline/maven_local_repo/**"
- name: "M2"
includes: "s4hana_pipeline/maven_local_repo/**"
# Following stash will contain only empty directory.
# This is required to support the concurrency in the stashing mechanism where
# we merge the stashes from multiple stages into one.
- name: "REPORTS"
includes: "s4hana_pipeline/reports/**"
build:
unstash: ["SOURCE", "M2"]
stashes:
- name: "M2"
includes: "s4hana_pipeline/maven_local_repo/**"
- name: "TARGET"
includes: "**/target/**"
- name: "NODE_MODULES"
includes: "**/node_modules/**"
- name: "PACKAGE_LOCK"
includes: "**/package-lock.json, **/npm-shrinkwrap.json"
- name: "GENERATED_CAP_FILES"
includes: "**/src/main/resources/edmx/**, db/src/gen/**, gen/**"
- name: "EXEC_FILES"
includes: "**/target/**/*.exec"
- name: "REPORTS"
merge: true
includes: "s4hana_pipeline/reports/**, **/target/site/**/jacoco.xml"
integration:
unstash: ["SOURCE", "M2", "TARGET", "NODE_MODULES", "GENERATED_CAP_FILES"]
stashes:
- name: "REPORTS"
merge: true
includes: "s4hana_pipeline/reports/**, **/target/site/**/jacoco.xml"
- name: "EXEC_FILES"
merge: true
includes: "**/target/**/*.exec"
compliance:
unstash: ['SOURCE', 'M2', 'REPORTS', 'TARGET', 'EXEC_FILES']
stashes: []
security:
unstash: ["SOURCE"]
stashes: []
additionalUnitTests:
unstash: ["SOURCE", "NODE_MODULES", "GENERATED_CAP_FILES"]
stashes:
- name: "REPORTS"
merge: true
includes: "s4hana_pipeline/reports/**, **/target/site/**/jacoco.xml"
endToEndTests:
unstash: ["SOURCE", "TARGET", "NODE_MODULES", "GENERATED_CAP_FILES"]
stashes: []
performanceTests:
unstash: ["SOURCE", "TARGET", "GENERATED_CAP_FILES"]
stashes:
- name: "REPORTS"
merge: true
includes: "s4hana_pipeline/reports/**"
artifactDeployment:
unstash: ["SOURCE", "M2", "TARGET", "NODE_MODULES", "GENERATED_CAP_FILES"]
stashes: []
productionDeployment:
unstash: ["SOURCE", "TARGET", "NODE_MODULES", "GENERATED_CAP_FILES"]
stashes: []
postPipelineHook:
unstash: ["SOURCE"]
stashes: []