migrate to new jenkins
authorErik Brakkee <erik@brakkee.org>
Sat, 24 Sep 2022 08:38:50 +0000 (10:38 +0200)
committerErik Brakkee <erik@brakkee.org>
Sat, 24 Sep 2022 08:38:50 +0000 (10:38 +0200)
Jenkinsfile [new file with mode: 0644]

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..db0435c
--- /dev/null
@@ -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
+          )
+        """   
+      }
+    }
+  }
+}