Set Jenkinsfile with timeout 1 hour and cron job triggers hourly
+String cron_string = BRANCH_NAME == "master" ? "@hourly" : ""
+
pipeline {
agent { label 'bm-inventory-subsystem' }
+ triggers { cron(cron_string) }
environment {
SERVICE = 'ocpmetal/assisted-service'
}
+ options {
+ timeout(time: 1, unit: 'HOURS')
+ }
stages {
stage('clear deployment') {
