[JIRA] (JENKINS-59234) Job config.xml parameters removed on job run

2 views
Skip to first unread message

murph.pm@gmail.com (JIRA)

unread,
Sep 4, 2019, 5:11:02 PM9/4/19
to jenkinsc...@googlegroups.com
Patrick Murphy created an issue
 
Jenkins / Bug JENKINS-59234
Job config.xml parameters removed on job run
Issue Type: Bug Bug
Assignee: Unassigned
Components: core, flow-plugin
Created: 2019-09-04 21:10
Priority: Minor Minor
Reporter: Patrick Murphy

We noticed that the parameter block of our job's config.xml sometime gets cleared when a sub job is created.

Example Before:

<?xml version='1.0' encoding='UTF-8'?>
<flow-definition plugin="workfl...@2.17">
<actions>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-mod...@1.2.7"/>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-mod...@1.2.7">
<jobProperties/>
<triggers/>
<parameters/>
</org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>
</actions>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.TextParameterDefinition>
<name>REQUEST_DATA</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.TextParameterDefinition>
</hudson.model.ParametersDefinitionProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workfl...@2.45">
<scm class="hudson.plugins.filesystem_scm.FSSCM" plugin="filesystem_scm@2.1">
<path>jenkins.groovy.scripts.path</path>
<clearWorkspace>false</clearWorkspace>
</scm>
<scriptPath>flavour.groovy</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>

 

After

<?xml version='1.0' encoding='UTF-8'?>
<flow-definition plugin="workfl...@2.17">
<actions>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-mod...@1.2.7"/>
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-mod...@1.2.7">
<jobProperties/>
<triggers/>
<parameters/>
</org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>
</actions>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workfl...@2.45">
<scm class="hudson.plugins.filesystem_scm.FSSCM" plugin="filesystem_scm@2.1">
<path>jenkins.groovy.scripts.path</path>
<clearWorkspace>false</clearWorkspace>
</scm>
<scriptPath>flavour.groovy</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>

 

Once it happens for the first time, it seems to happen consistently until jenkins is restarted entirely and the config.xml file restored from a source repository. However, given that we have to restart jenkins, we potentially have to wait for other jobs to finish which can result in productivity loss on the team.

 

If this is a known issue, can you point me at the correct jira.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dbeck@cloudbees.com (JIRA)

unread,
Sep 9, 2019, 3:57:03 AM9/9/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages