-
Notifications
You must be signed in to change notification settings - Fork 66
/
Jenkinsfile
52 lines (46 loc) · 1.4 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!groovy
@Library('jenkins-pipeline-libs@master')
import com.xebialabs.pipeline.globals.Globals
pipeline {
agent none
parameters {
string( name: 'jdkVersion',
defaultValue: Globals.jdk17Version,
description: 'Configuration to run server on an environment with designated jdk version')
string(name: 'slaveNode', defaultValue: 'xld-ubuntu', description: 'Node label where steps would be executed.')
}
environment {
REPOSITORY_NAME = 'overthere'
GRADLE_OPTS = "-XX:MaxMetaspaceSize=256m -Xmx1024m -Djsse.enableSNIExtension=true"
}
stages {
stage('Run test') {
agent { label params.slaveNode }
steps {
withEnv(Globals.java17Env(this, Globals.jdk17Version)) {
sh "./gradlew clean test"
}
}
}
stage('Run integration test') {
agent { label params.slaveNode }
steps {
withEnv(Globals.java17Env(this, Globals.jdk17Version)) {
sh "./gradlew clean itest"
}
}
post {
always {
junit '**/build/itest-results/*.xml'
}
}
}
}
post {
always {
node('xld-ubuntu') {
step([$class: 'ClaimPublisher'])
}
}
}
}