-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
24 lines (23 loc) · 869 Bytes
/
Jenkinsfile
File metadata and controls
24 lines (23 loc) · 869 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
pipeline {
agent any
tools {
jdk 'Jdk17'
maven 'maven'
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'mvn clean package'
}
}
stage('Post') {
steps {
archiveArtifacts 'spigot/target/GeyserBlockJavaPlayers*.jar'
archiveArtifacts 'bungeecord/target/GeyserBlockJavaPlayers*.jar'
archiveArtifacts 'velocity/target/GeyserBlockJavaPlayers*.jar'
discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}]" , footer: 'ProjectG', link: env.BUILD_URL, result: currentBuild.currentResult, title: "ProjectG/GeyserBlockJavaPlayers/${env.BRANCH_NAME}", webhookURL: "${env.DISCORD_WEBHOOK}"
}
}
}
}