@@ -13,14 +13,14 @@ pipeline {
13
13
defaultValue: '
[email protected] ',
14
14
description: "Email to send build failure and fixed notifications.")
15
15
}
16
-
16
+
17
17
environment {
18
- GITHUB_OWNER = 'microchip-pic-avr-examples'
19
- GITHUB_URL ='https://github.com/microchip-pic-avr-examples/pic18f16q41-uart-button-mpab -mcc'
20
- BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/pic18f16q41-uart-button-mpab -mcc.git'
18
+ GITHUB_OWNER = 'microchip-pic-avr-examples'
19
+ GITHUB_URL ='https://github.com/microchip-pic-avr-examples/pic18f16q41-uart-button-mplab -mcc'
20
+ BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/pic18f16q41-uart-button-mplab -mcc.git'
21
21
SEMVER_REGEX = '^(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+$'
22
22
ARTIFACTORY_SERVER = 'https://artifacts.microchip.com:7999/artifactory'
23
- }
23
+ }
24
24
options {
25
25
timestamps()
26
26
timeout(time: 30, unit: 'MINUTES')
@@ -37,13 +37,13 @@ pipeline {
37
37
}
38
38
}
39
39
}
40
-
40
+
41
41
post {
42
- failure {
43
- script {
42
+ failure {
43
+ script {
44
44
sendPipelineFailureEmail()
45
45
}
46
- }
46
+ }
47
47
}
48
48
}
49
49
def execute(String cmd) {
@@ -53,8 +53,8 @@ def execute(String cmd) {
53
53
bat cmd
54
54
}
55
55
}
56
- def sendPipelineFailureEmail() {
56
+ def sendPipelineFailureEmail() {
57
57
mail to: "${env.EMAILLIST},${params.NOTIFICATION_EMAIL}",
58
58
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
59
59
body: "Pipeline failure. ${env.BUILD_URL}"
60
- }
60
+ }
0 commit comments