|
|
|
@ -57,7 +57,7 @@ pipeline {
|
|
|
|
|
steps {
|
|
|
|
|
sh '''
|
|
|
|
|
date=`date`
|
|
|
|
|
echo "#Build ${PIPELINE_BUILD_NUMBER},,,,," > $PUSH_REPORT
|
|
|
|
|
echo "#Push ${PIPELINE_BUILD_NUMBER},,,,," > $PUSH_REPORT
|
|
|
|
|
echo "#StartTime ${date},,,,," >> $PUSH_REPORT
|
|
|
|
|
echo "#Release ${gCube_release_version},,,,," >> $PUSH_REPORT
|
|
|
|
|
echo "ArtifactID,Version,SCM URL,Build Number,Push response" >> $PUSH_REPORT
|
|
|
|
@ -85,17 +85,17 @@ pipeline {
|
|
|
|
|
always {
|
|
|
|
|
script {
|
|
|
|
|
sh '''
|
|
|
|
|
cp $PUSH_REPORT ./build_jobs.${PIPELINE_BUILD_NUMBER}.csv
|
|
|
|
|
cat ./build_jobs.${PIPELINE_BUILD_NUMBER}.csv
|
|
|
|
|
cp $PUSH_REPORT ./push_jobs.${PIPELINE_BUILD_NUMBER}.csv
|
|
|
|
|
cat ./push_jobs.${PIPELINE_BUILD_NUMBER}.csv
|
|
|
|
|
'''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
success {
|
|
|
|
|
echo 'The gCubePushingOut pipeline worked!'
|
|
|
|
|
emailext to: 'roberto.cirillo@isti.cnr.it',
|
|
|
|
|
subject: "[Jenkins PUSH D4S] ${TYPE} build ${currentBuild.fullDisplayName} worked",
|
|
|
|
|
subject: "[Jenkins PUSH D4S] ${TYPE} push ${currentBuild.fullDisplayName} worked",
|
|
|
|
|
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
|
|
|
|
emailext attachmentsPattern: "**/build_jobs.${PIPELINE_BUILD_NUMBER}.csv",
|
|
|
|
|
emailext attachmentsPattern: "**/push_jobs.${PIPELINE_BUILD_NUMBER}.csv",
|
|
|
|
|
to: 'roberto.cirillo@isti.cnr.it',
|
|
|
|
|
subject: "${TYPE} push report for ${GCUBE_RELEASE_NUMBER} (build #${PIPELINE_BUILD_NUMBER})",
|
|
|
|
|
body: "${currentBuild.fullDisplayName}. Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
|
|
|
@ -104,7 +104,7 @@ pipeline {
|
|
|
|
|
echo 'The gCubePushingOut pipeline has failed'
|
|
|
|
|
emailext attachLog: true,
|
|
|
|
|
to: 'roberto.cirillo@isti.cnr.it',
|
|
|
|
|
subject: "[Jenkins PUSH D4S] build ${currentBuild.fullDisplayName} failed",
|
|
|
|
|
subject: "[Jenkins PUSH D4S] push ${currentBuild.fullDisplayName} failed",
|
|
|
|
|
body: "Something is wrong with ${env.BUILD_URL}"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|