-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
46 lines (39 loc) · 856 Bytes
/
Jenkinsfile
File metadata and controls
46 lines (39 loc) · 856 Bytes
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
#!groovy
pipeline {
agent any
tools {
jdk "11.0.8"
}
options {
buildDiscarder logRotator(numToKeepStr: '10')
}
stages {
stage('Clean') {
steps {
sh 'mvn clean';
}
}
stage('Build') {
steps {
sh 'mvn package';
}
}
stage('Verify') {
steps {
sh 'mvn verify';
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: 'target/reformcloud-versions-updater-1.0-SNAPSHOT.jar', fingerprint: true
}
}
}
post {
always {
withCredentials([string(credentialsId: 'discord-webhook', variable: 'url')]) {
discordSend description: 'New build of Version-Updater', footer: 'Update', link: BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: JOB_NAME, webhookURL: url
}
}
}
}