only building the site now
[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           No longer building the code since cling-core is no longer 
18           #maintained
19           #mvn install
20           (
21             cd site
22             mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
23           )
24         """   
25       }
26     }
27   }
28 }