Reputation: 587
I have a Jenkins job that takes a source branch name as a parameter. Now I want to schedule the job to run at midnight everyday. As you always need to input the parameter even though the default value has been set. So my question is, is there a way to automate the execution of a parameterized job?
Thanks!
Upvotes: 17
Views: 18373
Reputation: 32167
Schedule a separate recurring job and use the Parameterized Trigger Plugin to trigger your parameterized build.
Upvotes: 5
Reputation: 587
I have found the answer which is writing a shell script by using Jenkins Remote Access API. An existing question (Jenkins: How can I make a remotely submitted job use default parameter values?) is related. One also can check here (https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API) to find more information.
Upvotes: 4