forked from EdgeApp/edge-core-js
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
55 lines (51 loc) · 886 Bytes
/
Jenkinsfile
File metadata and controls
55 lines (51 loc) · 886 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pipeline {
agent any
tools {
nodejs 'v8.12.0'
}
options {
timestamps()
skipDefaultCheckout true
}
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage("Clean") {
steps {
deleteDir()
checkout scm
}
}
stage ("Install") {
steps {
sh "yarn"
}
}
stage ("Test") {
steps {
sh "yarn test"
}
}
}
post {
always {
echo 'Setting the build version'
script {
def packageJson = readJSON file: "./package.json"
currentBuild.description = "[version] ${packageJson.version}"
}
echo 'Cleaning the workspace'
deleteDir()
}
success {
echo "The force is strong with this one"
}
unstable {
echo "Do or do not there is no try"
}
failure {
echo "The dark side I sense in you."
}
}
}