From f714cbef248186e098aed41f5e6054d1ad605042 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:41:53 +0200 Subject: [PATCH] Add auto update stage to Jenkinsfile --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 54966ac..6a82000 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,5 +16,14 @@ pipeline { discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook } } + stage('Copy to /mnt/updates/plugins') { + when { + branch 'main' + branch 'master' + } + steps { + sh 'cp build/libs/*.jar /mnt/updates/plugins/' + } + } } } \ No newline at end of file