diff --git a/Jenkinsfile b/Jenkinsfile index 386f43c..fbadbdc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,20 @@ pipeline { - stage('Checkout') { - checkout scm - } - stage ('Build') { - sh './gradlew build' + agent any + stages { + stage('Gradle') { + steps { + sh './gradlew build' + } + } + stage('Archive') { + steps { + archiveArtifacts artifacts: 'build/libs/', followSymlinks: false + } + } + stage('discord') { + steps { + discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: 'https://discord.com/api/webhooks/1006621409151295529/aK-0Q5kwVI3OxSkpIcVoT7rvnW4ntHkhqVYRiX09i4bj8onE384-eFg_OWR6zWsm-_46' + } + } } } \ No newline at end of file