Skip to content

Cron-configuration in Jenkinsfile ignored when obtained via Remote Jenkinsfile Provider plugin? #153

@demo-cicd

Description

@demo-cicd

Describe the bug
Build is not triggered at expected time, even though Jenkins shows the time-based trigger in the GUI correctly: H H(16-18) * * 0-5
We suspect that this is ignored since the Jenkinsfile needs to be obtained from Git by the plugin first before it can be interpreted.
Push-based triggering works fine though.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Jenkinsfile with a 'triggers'-section containing a 'cron'-statement
  2. Upload Jenkinsfile to a Git-repo
  3. Configure a build to use the Remote Jenkinsfile Provider plugin to obtain the Jenkinsfile from the Git-repo
  4. Wait until build is triggered at expected time - which won't happen

Expected behavior
Build triggers at times specified in Jenkinsfile.

Versions:

  • Jenkins version 2.246.1
  • Plugin version: 1.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions