mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-16 11:09:33 +02:00
db5022a4ff
This scenario builds a UI5 app and deploys it to SAP Cloud Platform (neo).
51 lines
1.2 KiB
Groovy
51 lines
1.2 KiB
Groovy
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
import groovy.transform.Field
|
|
|
|
@Field def STEP_NAME = getClass().getName()
|
|
|
|
@Field def GENERAL_CONFIG_KEYS = []
|
|
@Field def PARAMETER_KEYS = []
|
|
@Field def STEP_CONFIG_KEYS = []
|
|
|
|
/** The Scenario is intended for building and uploading a fiori application.
|
|
*
|
|
* It needs to be called from a pipeline script (Jenkinsfile) like:
|
|
* ```
|
|
* @Library('piper-lib-os') _
|
|
* @Library('your-additional-lib') __ // optional
|
|
*
|
|
* // parameter 'customDefaults' below is optional
|
|
* fioriOnCloudPlatformPipeline(script: this, customDefaults: '<configFile>')
|
|
* ```
|
|
*/
|
|
void call(parameters = [:]) {
|
|
|
|
checkScript(this, parameters)
|
|
|
|
node(parameters.label) {
|
|
|
|
//
|
|
// Cut and paste lines below in order to create a pipeline from this scenario
|
|
// In this case `parameters` needs to be replaced by `script: this`.
|
|
|
|
stage('prepare') {
|
|
|
|
setupCommonPipelineEnvironment(parameters)
|
|
}
|
|
|
|
stage('build') {
|
|
|
|
mtaBuild(parameters)
|
|
}
|
|
|
|
stage('deploy') {
|
|
|
|
neoDeploy(parameters)
|
|
}
|
|
|
|
// Cut and paste lines above in order to create a pipeline from this scenario
|
|
//
|
|
}
|
|
}
|