-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathJenkinsfile
40 lines (39 loc) · 873 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
#!/usr/bin/env groovy
node {
try {
stage('checkout') {
checkout([
$class: 'GitSCM',
branches: [[name: '**']],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: false,
recursiveSubmodules: true,
reference: '',
trackingSubmodules: false
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'github',
url: 'https://github.com/mbientlab/MetaWear-SDK-JavaScript'
]]
])
}
stage('prepare') {
sh 'node -v'
sh 'npm prune'
}
stage('compile') {
sh 'npm install'
}
stage('test') {
sh 'npm test'
}
} finally {
stage('cleanup') {
echo 'doing some cleanup...'
}
}
}