generated from gCubeCI/Pipeline-Docker-Template
Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Roberto Cirillo | 5e84d57f91 | |
Roberto Cirillo | 545ec46752 | |
Roberto Cirillo | 6a162840a4 | |
Roberto Cirillo | 4a89d6b448 | |
Roberto Cirillo | d678d87ec8 | |
Roberto Cirillo | 78904c0793 | |
Roberto Cirillo | fea4741152 |
|
@ -82,7 +82,7 @@ pipeline {
|
|||
//URL to the YAML file. Used alternatively to RELEASE_JOB
|
||||
RELEASE_URL= "${params.RELEASE_URL}"
|
||||
// username of ReleaseManager. Used for limiting the preproduction deployments
|
||||
RELEASE_MANAGER_USER='roberto.cirillo'
|
||||
RELEASE_MANAGER_USER='giancarlo.panichi'
|
||||
// name of Smartgears distribution group, defined in the yaml file ( only for release deployments)
|
||||
DISTRIBUTION_CATEGORY='Distribution'
|
||||
// name of Portlets group, defined in the yaml file ( only for release deployments)
|
||||
|
@ -206,6 +206,9 @@ pipeline {
|
|||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
|
||||
checkup("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
|
||||
}
|
||||
if (currentBuild.result == "UNSTABLE") {
|
||||
return;
|
||||
}
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
deploy("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}", "${params.TRIGGER_FOO}");
|
||||
}
|
||||
|
@ -264,14 +267,14 @@ pipeline {
|
|||
echo 'The deploy pipeline worked!'
|
||||
|
||||
emailext attachLog: true,//attachmentsPattern: "**/${ACTION_DEPLOY_FILE}.csv",
|
||||
to: 'roberto.cirillo@isti.cnr.it',
|
||||
to: 'jenkinsbuilds@d4science.org',
|
||||
subject: "[Jenkins-gCubeDeployer] Deploy report",
|
||||
body: "${currentBuild.fullDisplayName}. Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}. "
|
||||
}
|
||||
failure {
|
||||
echo 'The deploy pipeline has failed'
|
||||
emailext attachLog: true,
|
||||
to: 'roberto.cirillo@isti.cnr.it',
|
||||
to: 'jenkinsbuilds@d4science.org',
|
||||
subject: "[Jenkins-gCubeDeployer] deploy ${currentBuild.fullDisplayName} failed",
|
||||
body: "Something is wrong with ${env.BUILD_URL}"
|
||||
}
|
||||
|
@ -337,6 +340,9 @@ def deployJobs(def serviceList){
|
|||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
|
||||
checkup(service[0], service[ 1 ], service[2]);
|
||||
}
|
||||
if (currentBuild.result == "UNSTABLE") {
|
||||
return;
|
||||
}
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
deploy(service[0], service[ 1 ], service[2]);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ Jenkins Pipeline script to manage one or more gCube components deployment
|
|||
The variables below must be specified as environment variables on the agent where the deployments will be executed:
|
||||
* IS_SCHEDULED (True | False): if true all the deployment requests will be performed periodically as specified by cron
|
||||
* ENVIRONMENT: ( DEV | PREPROD | PROD) Indicates the target environment where will be deployed all the artifacts
|
||||
* DEPLOY_CATEGORY: (Related to release build) one or more Component group on yaml file where search the components to deploy
|
||||
* DEPLOY_CATEGORY: (Related to release build) one or more Component group (separated by commas) on yaml file where search the components to deploy
|
||||
* CD: (Continuous Deployment: True | False) if True the remote deploy will be performed
|
||||
|
||||
## References
|
||||
|
|
Loading…
Reference in New Issue