forked from PaperMC/Waterfall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (35 loc) · 894 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
pipeline {
agent any
tools {
maven 'Maven 3'
jdk 'JDK8'
}
stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
stage('Build') {
steps {
sh './waterfall build'
}
}
stage('Results') {
steps {
junit '**/target/surefire-reports/TEST-*.xml'
archive 'target/*.jar'
}
}
stage('Deploy') {
steps {
configFileProvider([configFile(fileId: 'b8e2316f-5cad-48e6-ab64-1afae45b71b3', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS -DrepositoryId=maven-releases deploy'
}
}
}
}
}