forked from esvit/ng-table
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (30 loc) · 997 Bytes
/
Jenkinsfile
File metadata and controls
37 lines (30 loc) · 997 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
26
27
28
29
30
31
32
33
34
35
36
37
node('linux') {
checkout scm
nodejs(nodeJSInstallationName: 'NodeJS 6.x') {
stage('Install') {
sh 'npm prune && npm install'
}
stage('Setup - CI') {
sh 'npm run setup:ci'
}
stage ('Build - Demo Apps') {
sh 'npm run build:demo-apps'
}
stage('Test') {
sh 'npm test'
}
}
milestone 1
}
try {
if (env.BRANCH_NAME == "sumt-master" || env.BRANCH_NAME.startsWith('SS')) {
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 ng-table 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
}