Details
-
Type:
Bug
-
Status: Reopened (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: job-dsl-plugin
-
Labels:None
-
Environment:Jenkins ver. 2.53,
Build Pipeline Plugin 1.5.6
Pipeline
-
Similar Issues:
Description
Steps to reproduce
- I have created Pipeline job
- During creation I checked up "This project is parameterized" checkbox and added two Choice parameters
- I have run the job and it failed
- I checked the configuration of the job and parameters are no longer there and "This project is parameterized" checkbox is no longer checked up.
Attachments
Issue Links
- causes
-
JENKINS-51038 Re-defining existing job loses environment variables
-
- Closed
-
We struggled with this problem also. For now, we wrote a little script to start jobs and put it in /var/jenkins_home/init.groovy.d folder which contains groovy scripts that are executed after Jenkins docker instance started. After that, we added a stage to pipeline script of relevant job to stop it after Jenkins restarted. I know this hacky but at least works for now until this issue resolved.
Additionally, using queue function of jobDsl didn't work sometimes, so we gave up using it. It seems, there is a race condition issue.