-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (42 loc) · 966 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
37
38
39
40
41
42
43
pipeline {
agent any
stages {
stage('Checkout'){
steps {
cleanWs()
echo env.BRANCH_NAME
checkout scm
}
}
stage('Install') {
steps {
sh 'cp tests/scripts/example-test-paths.js tests/scripts/test-paths.js'
sh 'make install'
sh 'touch db_user_password'
}
}
stage('Test'){
steps {
dir("www"){
sh 'npm run test'
}
}
}
stage('Build'){
steps {
dir("www"){
sh 'npm run build'
}
}
}
}
post{
always {
dir("release") {
sh 'cat build-output.txt || true'
sh 'cat www/build-report.txt || true'
sh 'cat live/www/build-report.txt || true'
}
}
}
}