forked from mattlewis92/angular-bootstrap-calendar
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (19 loc) · 805 Bytes
/
Jenkinsfile
File metadata and controls
26 lines (19 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
node('linux') {
stage('Prepare Workspace') {
// clean
deleteDir()
checkout scm
}
}
try {
if (env.BRANCH_NAME == "sumt-master" || env.BRANCH_NAME.startsWith('SS') || env.BRANCH_NAME == "developement") {
build job: 'Foundation Controls(GitHub_develop)', wait: false
}
} catch(e) {
echo 'Unable to find the Foundation control branch for downstream building. Not failing the build for this...'
emailext body: "Unable to find the Foundation control branch for angular-bootstrap-calender repository in github. Please view the build information here: ${env.BUILD_URL}",
from: 'Jenkins CI Server <jenkins-no-reply@sumtotalsystems.com>',
subject: 'The foundation-controls project build has failed',
to: 'SumTotal-DevOps-Build@skillsoft.com'
throw err
}