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

Pipeline cron triggers not created until a build is triggered manually

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 2.73.2 / CentOS 6 on Virtualbox / openjdk 1.8.0_144

      I have a simple pipeline job:

       

      pipeline {
      
          agent {
              label 'master'
          }
      
          triggers {
              cron('* * * * *')
          }
      
          stages {
              stage('main') {
                  steps {
                      sh "echo foo"
                  }
              }
          }
      
      }

      I create the pipeline project via the Jenkins UI. I expect that I will see cron build triggers in the UI as a result, but in fact none appear after initial project creation. Only after I have manually triggered a build of the pipeline does the expected cron build trigger appear and begin working. It seems like the build trigger should be present immediately after saving the job with the pipeline script shown above.

       

            Unassigned Unassigned
            qxtmzwxmnghdkydg Andrew C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: