migrate to new jenkins
[upnpmonitor] / Jenkinsfile
1 String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : ""
2
3
4 pipeline {
5   agent {
6     kubernetes agentsetup(containers: 'java8') 
7   }
8   options {
9     disableConcurrentBuilds()
10   }
11   triggers { cron(cron_string) }
12   
13   stages {
14     stage('Main') {
15       steps {  
16         sh """
17           mvn install
18           (
19             cd site
20             mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
21           )
22         """   
23       }
24     }
25   }
26 }