-
Notifications
You must be signed in to change notification settings - Fork 40
/
Jenkinsfile
56 lines (48 loc) · 1.21 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
53
54
55
56
#!/usr/bin/env groovy
pipeline {
agent {
label 'slave-group-release'
}
environment {
MAVEN_HOME = tool('Maven')
JAVA_HOME = tool('JDK 11')
PATH = "$MAVEN_HOME/bin:$JAVA_HOME/bin:$HOME/bin:$PATH"
}
options {
timeout(time: 3, unit: 'HOURS')
}
stages {
stage('Prepare') {
steps {
// Show the agent name in the build list
script {
// The manager variable requires the Groovy Postbuild plugin
manager.addShortText(env.NODE_NAME, "grey", "", "0px", "")
}
}
}
stage('Checkout') {
steps {
checkout scm
}
}
stage('Sync Schemas') {
steps {
echo "Using PATH = ${env.PATH}"
sh "_bin/sync_schemas.sh"
}
}
stage('Publish') {
steps {
echo "Using PATH = ${env.PATH}"
sh "_bin/publish.sh"
}
}
}
post {
always {
// Clean
sh 'git clean -fdx -e "*.hprof" || echo "git clean failed, exit code $?"'
}
}
}