-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
29 lines (29 loc) · 775 Bytes
/
Jenkinsfile
File metadata and controls
29 lines (29 loc) · 775 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
pipeline {
parameters {
choice choices: ['nodejs18', 'nodejs16', 'nodejs14'], description: 'Choose NodeJS version', name: 'NODEJS_TOOL_VERSION'
}
agent {
kubernetes {
label 'slave-2cpu-8gb'
}
}
tools {
nodejs params.NODEJS_TOOL_VERSION
}
stages {
stage('Install Base Dependencies') {
steps {
cache(caches: [
arbitraryFileCache(
path: "node_modules",
includes: "**/*",
cacheName: "main-1"
)
]) {
// Install the ones not in the cache
sh 'yarn install'
}
}
}
}
}