-
Notifications
You must be signed in to change notification settings - Fork 19
/
Jenkinsfile
48 lines (45 loc) · 1020 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
44
45
46
47
48
def kubernetes_config = """
apiVersion: v1
kind: Pod
spec:
containers:
- name: openjdk
image: openjdk:11
tty: true
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "1"
"""
pipeline {
agent {
kubernetes {
label 'sprotty-server-agent-pod'
yaml kubernetes_config
}
}
options {
buildDiscarder logRotator(numToKeepStr: '15')
}
stages {
stage('Build sprotty-server') {
environment {
GRADLE_ARGS = "--no-daemon --refresh-dependencies --continue -PignoreTestFailures=true"
}
steps {
container('openjdk') {
sh "./gradlew ${env.GRADLE_ARGS} build createLocalMavenRepo"
}
}
}
}
post {
success {
junit '**/build/test-results/test/*.xml'
archiveArtifacts 'build/maven-repository/**'
}
}
}