This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Try following Jenkinsfile, it will always run on master, even you configured job restriction

      #!/usr/bin/env groovy
      timeout(time: 5, unit: 'MINUTES') {
        timestamps {
          properties([buildDiscarder(logRotator(daysToKeepStr: '7', artifactDaysToKeepStr: '0'))])
          stage('printing') {
            for ( i=1; i<10; i++ ) {
              println "Round ${i} checking"
              sleep 1
            }
          }
        }
      } 

            Assignee:
            Unassigned
            Reporter:
            Joe Lee
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: