From cb3659b3b83e66fbb2851bb52392bdcd926528d2 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sat, 24 Sep 2022 10:38:50 +0200 Subject: [PATCH] migrate to new jenkins --- Jenkinsfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..db0435c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : "" + + +pipeline { + agent { + kubernetes agentsetup(containers: 'java8') + } + options { + disableConcurrentBuilds() + } + triggers { cron(cron_string) } + + stages { + stage('Main') { + steps { + sh """ + mvn install + ( + cd site + mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy + ) + """ + } + } + } +} -- 2.31.1