From c09d1950a186e676489ec10cda51226bade02f3d Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:16:13 +0100 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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