Skip to content

Commit 040251a

Browse files
committed
add email notification to nightly build failure
1 parent af30a1a commit 040251a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ pipeline {
8383
always {
8484
junit 'tests/target/failsafe-reports/*.xml'
8585
}
86+
failure {
87+
mail to: "${env.WIT_BUILD_NOTIFICATION_EMAIL_TO}", from: '[email protected]',
88+
subject: "WebLogic Image Tool: ${env.JOB_NAME} - Failed",
89+
body: "Job Failed - \"${env.JOB_NAME}\" build: ${env.BUILD_NUMBER}\n\nView the log at:\n ${env.BUILD_URL}\n"
90+
}
8691
}
8792
}
8893
}

0 commit comments

Comments
 (0)