forked from theia-ide/sprotty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (32 loc) · 1.06 KB
/
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
node {
properties([
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '15']]
])
stage('Checkout') {
checkout scm
}
stage('Yarn Build') {
try {
dir('client') {
sh "yarn install"
sh "yarn run clean"
sh "yarn run build"
sh "yarn run examples:build"
sh "yarn test || true" // Ignore test failures
}
} finally {
step([$class: 'JUnitResultArchiver', testResults: 'client/artifacts/test/xunit.xml'])
archive 'client/artifacts/coverage/**'
}
}
stage('Gradle Build') {
try {
dir('server') {
sh "./gradlew clean build createLocalMavenRepo -PignoreTestFailures=true --refresh-dependencies --continue"
}
} finally {
step([$class: 'JUnitResultArchiver', testResults: 'server/**/build/test-results/test/*.xml'])
archive 'server/build/maven-repository/**'
}
}
}