-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (34 loc) · 1016 Bytes
/
Jenkinsfile
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
pipeline {
agent {
dockerfile true
}
stages {
stage('Install dependencies') {
steps {
sh 'node --version'
sh 'npm install'
}
}
stage ('Build') {
steps {
sh 'npm run build'
}
}
stage ('Test and validate') {
steps {
sh 'npm test'
}
}
}
post {
success {
mattermostSend endpoint: "${ENDPOINT}" , channel: 'sdk_build_bot', color: 'blue', message: "Success ${env.JOB_NAME} ${env.BUILD_NUMBER}"
}
failure {
mattermostSend endpoint: "${ENDPOINT}" , channel: 'sdk_build_bot', color: 'red', message: "Failure ${env.JOB_NAME} ${env.BUILD_NUMBER}"
}
unstable {
mattermostSend endpoint: "${ENDPOINT}" , channel: 'sdk_build_bot', color: 'yellow', message: "Unstable ${env.JOB_NAME} ${env.BUILD_NUMBER}"
}
}
}