[JIRA] (JENKINS-58462) Allow Jenkins Pipeline job config to be refreshed without running a build

1 view
Skip to first unread message

dstrong@glyx.co.uk (JIRA)

unread,
Jul 12, 2019, 5:21:02 AM7/12/19
to jenkinsc...@googlegroups.com
Dan Strong created an issue
 
Jenkins / Improvement JENKINS-58462
Allow Jenkins Pipeline job config to be refreshed without running a build
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: pipeline
Created: 2019-07-12 09:20
Priority: Minor Minor
Reporter: Dan Strong

Currently, when a Jenkins pipeline is created, job config such as parameters, cron triggers, etc. are not populated before the first build is run. For example, when a parameter is added to a pipeline, the Jenkins UI will not allow the user to input the parameter until the job has been built with that parameter missing. In many cases this leads to a failed build, but it may cause more subtle problems depending on how the pipeline is written.

This is particularly frustrating when using the seed job pattern along with Jenkins pipelines; at the moment we seed our jenkins jobs nightly to ensure that our Jenkins configuration doesn't drift from source controlled job definitions. Every time a parametrized Pipeline job is seeded, the first run after the seed will not accept parameters and fail, forcing us to re-run the job.

Functionality should be available to force jenkins to pull the latest Pipeline script and update job configuration in line with that script without running a build. This would allow us to trigger this "config refresh" from our seed job and avoid confusing and disruptive build failures.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages