DBZ-4071 Recipient email address should be a variable in all Jenkins jobs
This commit is contained in:
parent
477efc4033
commit
ecaa495f30
@ -7,6 +7,7 @@ STREAMS_TO_BUILD_COUNT = STREAMS_TO_BUILD_COUNT.toInteger()
|
||||
TAGS_PER_STREAM_COUNT = TAGS_PER_STREAM_COUNT.toInteger()
|
||||
GIT_CREDENTIALS_ID = 'debezium-github'
|
||||
DOCKER_CREDENTIALS_ID = 'debezium-dockerhub'
|
||||
MAIL_ID = 'jpechane@redhat.com'
|
||||
|
||||
class Version implements Comparable {
|
||||
int major
|
||||
@ -181,6 +182,6 @@ node('Slave') {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
mail to: ${MAIL_ID}, subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,8 @@ GIT_CREDENTIALS_ID = 'debezium-github'
|
||||
DEBEZIUM_DIR = 'debezium'
|
||||
HOME_DIR = '/home/centos'
|
||||
|
||||
MAIL_ID = 'jpechane@redhat.com'
|
||||
|
||||
ORACLE_ARTIFACT_DIR = "$HOME_DIR/oracle-libs/21.1.0.0.0"
|
||||
ORACLE_ARTIFACT_VERSION = '21.1.0.0'
|
||||
|
||||
@ -64,6 +66,6 @@ node('Slave') {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
mail to: ${MAIL_ID}, subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
MAIL_ID = 'jcechace@redhat.com'
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'Slave'
|
||||
@ -60,7 +62,7 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
mail to: 'jcechace@redhat.com', subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
mail to: ${MAIL_ID}, subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
${currentBuild.projectName} run ${BUILD_URL} finished with result: ${currentBuild.currentResult}
|
||||
"""
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
MAIL_ID = 'jcechace@redhat.com'
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'Slave'
|
||||
@ -48,7 +50,7 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
mail to: 'jcechace@redhat.com', subject: "Debezium artifact server preparation #${BUILD_NUMBER} finished", body: """
|
||||
mail to: ${MAIL_ID}, subject: "Debezium artifact server preparation #${BUILD_NUMBER} finished", body: """
|
||||
${currentBuild.projectName} run ${BUILD_URL} finished with result: ${currentBuild.currentResult}
|
||||
"""
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
MAIL_ID = 'jcechace@redhat.com'
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'Slave'
|
||||
@ -81,7 +83,7 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
mail to: 'jcechace@redhat.com', subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
mail to: ${MAIL_ID}, subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
${currentBuild.projectName} run ${BUILD_URL} finished with result: ${currentBuild.currentResult}
|
||||
"""
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
MAIL_ID = 'jcechace@redhat.com'
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'Slave'
|
||||
@ -216,7 +218,7 @@ pipeline {
|
||||
archiveArtifacts '**/target/failsafe-reports/*.xml'
|
||||
junit '**/target/failsafe-reports/*.xml'
|
||||
|
||||
mail to: 'jcechace@redhat.com', subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
mail to: ${MAIL_ID}, subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
OpenShift interoperability test run ${BUILD_URL} finished with result: ${currentBuild.currentResult}
|
||||
"""
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ if (
|
||||
error 'Input parameters not provided'
|
||||
}
|
||||
|
||||
MAIL_ID = 'jpechane@redhat.com'
|
||||
CONFIG_DIR = '.config/pnc-bacon'
|
||||
BUILD_CONFIG_DIR = 'debezium-bacon'
|
||||
BACON_MAVEN_URL = "https://repo1.maven.org/maven2/org/jboss/pnc/bacon/cli/$BACON_VERSION/cli-$BACON_VERSION-shaded.jar"
|
||||
@ -78,6 +79,6 @@ node('Slave') {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
mail to: ${MAIL_ID}, subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,8 @@ echo "Dry run: ${DRY_RUN}"
|
||||
|
||||
GIT_CREDENTIALS_ID = 'debezium-github'
|
||||
JIRA_CREDENTIALS_ID = 'debezium-jira'
|
||||
MAIL_ID = 'jpechane@redhat.com'
|
||||
|
||||
HOME_DIR = '/home/centos'
|
||||
GPG_DIR = 'gpg'
|
||||
|
||||
@ -681,6 +683,6 @@ node('Slave') {
|
||||
}
|
||||
|
||||
} finally {
|
||||
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
mail to: ${MAIL_ID}, subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
MAIL_ID = 'jcechace@redhat.com'
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'Slave'
|
||||
@ -48,7 +50,7 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
mail to: 'jcechace@redhat.com', subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
mail to: ${MAIL_ID}, subject: "Debezium OpenShift test run #${BUILD_NUMBER} finished", body: """
|
||||
${currentBuild.projectName} run ${BUILD_URL} finished with result: ${currentBuild.currentResult}
|
||||
"""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user