gitlab-branch-source-plugin icon indicating copy to clipboard operation
gitlab-branch-source-plugin copied to clipboard

Is it possible to schedule a build ?

Open wushuzh opened this issue 2 years ago • 1 comments

What feature do you want to see added?

Is it possible to setup a schedule build using this plugin in pipeline file ?

or with any workaround or with the help of other plugin ?

Upstream changes

https://issues.jenkins.io/browse/JENKINS-42643?focusedCommentId=293221#comment-293221

wushuzh avatar Mar 11 '23 12:03 wushuzh

Hi @wushuzh,

I don't really understand the question. It is possible without this plugin. it is written in the link you posted. https://www.jenkins.io/doc/book/pipeline/syntax/#cron-syntax

pipeline {
  triggers {
      cron( env.BRANCH_NAME.equals('master') ? '0 2 * * *' : '')
  }

if that answers your question. Thank you for closing the ticket

Turiok avatar Mar 25 '23 07:03 Turiok