Skip to content

Commit

Permalink
Add tmsExport to release step (#4648)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinikitha09 authored Oct 27, 2023
1 parent e11896c commit daf159a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/com.sap.piper/pipeline/stageDefaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ spec:
- name: tmsUpload
conditions:
- configKey: nodeName
- name: tmsExport
conditions:
- configKey: nodeName
- name: healthExecuteCheck
conditions:
- configKey: 'testServerUrl'
Expand Down
6 changes: 6 additions & 0 deletions vars/piperPipelineStageRelease.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import static com.sap.piper.Prerequisites.checkScript
'kubernetesDeploy',
/** For TMS use-cases: Performs upload to Transport Management Service node*/
'tmsUpload',
/** For TMS use-cases: Performs export to Transport Management Service node*/
'tmsExport',
/** Publishes release information to GitHub. */
'githubPublishRelease',
/** Executes smoke tests by running the npm script 'ci-smoke' defined in the project's package.json file. */
Expand Down Expand Up @@ -93,6 +95,10 @@ void call(Map parameters = [:]) {
durationMeasure(script: script, measurementName: 'upload_release_tms_duration') {
tmsUpload script: script
}
} else if(config.tmsExport){
durationMeasure(script: script, measurementName: 'export_release_tms_duration') {
tmsExport script: script
}
}

if (config.healthExecuteCheck) {
Expand Down

0 comments on commit daf159a

Please sign in to comment.