-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathJenkinsfile
More file actions
24 lines (22 loc) · 760 Bytes
/
Jenkinsfile
File metadata and controls
24 lines (22 loc) · 760 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
pipeline {
agent { dockerfile true }
stages {
stage('Test') {
steps {
withEnv([
/* Override the npm cache directory to avoid: EACCES: permission denied, mkdir '/.npm' */
'npm_config_cache=npm-cache',
/* set home to our current directory because other bower
* nonsense breaks with HOME=/, e.g.:
* EACCES: permission denied, mkdir '/.config'
*/
]) {
sh 'node --version'
sh 'cat /etc/os-release'
sh 'npm install'
sh 'npm run-script build'
}
}
}
}
}