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

scheduled job on dedicated branch does not work on github org / multibranch pipelines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • jenkins 2.332.1

       

      Goal

      I have a github organization job that runs a Jenkinsfile. I have modified the jenkinsfile to add a scheduled trigger as I want to trigger the pipeline every day for master branch now

       

      Jenkinsfile

      My jenkinsfile starts with following code :

      // Schedule pipeline every morning on master
      if (env.BRANCH_NAME.equals('master') ) {
          properties(
              [
                  pipelineTriggers(
                      [cron('''TZ=Europe/Paris
      H 5 * * *''')
                      ]
                  )
              ]
          )
      } 

       

       

      Issue

      But in my master job console I get following log => it is the opposite of what is expected.

      My job is not scheduled

       

      05:30:46 removeJobSchedule - Removed existing TimerTrigger with spec 'TZ=Europe/Paris 
      05:30:46 H 5 * * *'

       

       

      I do not understand what is going wrong.

      Expected Behaviour

      When creating a new job with same code , it works fine (github org AND multibranch pipeline) => is there something special if i modify an existing job ?

      I would expect that the sub job master is scheduled correctly with given code
       

            Unassigned Unassigned
            tcoan Thomas COAN
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: