Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66713

Schedule Stage Independently

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None

      I don't know if this exists yet, but I'm looking for a way to build a stage within the pipeline independently daily. In this example down there, I want to be able to build the "scan" stage every 10 minutes separately and independently. Is this something that is possible?

       

      pipeline {    
          agent {
            label 'master'
          }
          
          triggers {
            cron('* * * * *')
          }    
          stages {
            stage('build') {
              steps {
                sh "building every day at midnight"
                }
              }
      
            stage('scan') 
              { 
                steps { 
                  sh "Scanning daily" 
                  } 
                }
          }
       }
      
      

            Unassigned Unassigned
            taziamoma Taziamoma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: