forked from eclipse-sprotty/sprotty-theia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (40 loc) · 1006 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
def kubernetes_config = """
apiVersion: v1
kind: Pod
spec:
containers:
- name: node
image: node:8.12
tty: true
"""
pipeline {
agent {
kubernetes {
label 'sprotty-theia-agent-pod'
yaml kubernetes_config
}
}
options {
buildDiscarder logRotator(numToKeepStr: '15')
}
stages {
stage('Build sprotty-theia') {
environment {
SPAWN_WRAP_SHIM_ROOT = "${env.WORKSPACE}"
YARN_ARGS = "--cache-folder ${env.WORKSPACE}/yarn-cache --global-folder ${env.WORKSPACE}/yarn-global"
}
steps {
container('node') {
sh "yarn ${env.YARN_ARGS} install"
sh "yarn ${env.YARN_ARGS} test || true" // Ignore test failures
}
}
}
}
post {
success {
junit 'artifacts/test/xunit.xml'
archiveArtifacts 'artifacts/coverage/**'
}
}
}