-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
executable file
·40 lines (38 loc) · 1.34 KB
/
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
37
38
39
40
pipeline {
agent any
stages {
stage('NPM Install') {
steps {
sh 'yarn install'
}
}
stage('Test & Coverage') {
steps {
sh 'yarn run cov'
}
}
stage('Lint'){
steps {
sh './node_modules/.bin/eslint app lib backgroundScript --ignore-path .build.eslintignore'
}
}
stage('Build') {
steps {
sh 'yarn run build'
}
}
stage('Package') {
steps {
sh 'tar -zcvf enzyme.tar.gz build/'
}
}
}
post {
success {
googlechatnotification url: 'https://chat.googleapis.com/v1/spaces/AAAAYTPBltI/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=7reUovkwzb3W0fXTkRZ0WFj1lGusO5OmyWbB_dRCMqY%3D&threadKey=jenkins', message: '${JOB_NAME} is ${BUILD_STATUS} by ${CHANGE_AUTHOR} [ SUCCESS ]'
}
failure {
googlechatnotification url: 'https://chat.googleapis.com/v1/spaces/AAAAYTPBltI/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=7reUovkwzb3W0fXTkRZ0WFj1lGusO5OmyWbB_dRCMqY%3D&threadKey=jenkins', message: '${JOB_NAME} is ${BUILD_STATUS} by ${CHANGE_AUTHOR} [ FAIL ] '
}
}
}