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 """ #No longer building the code since cling-core is no longer #maintained #mvn install ( cd site mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy ) """ } } } }