Andrew P commented on Bug JENKINS-24008

I believe that I have hit the same issue.
I am calling the job from a flow. The flow is triggered manually.

The job makes use of Build with parameters.
It has a Dynamic Extended Choice Plugin aka Moded Extended Choice Parameter and an Extended Choice Parameter.

We don't even have to use "Bind with field" to expose the unwanted behavior.
Just by having both Extended Choice Parameter and Extended Choice Parameter in the same job makes it hang when called from a Flow.

-----Verisons and modules -------
Using Jenkins ver. 1.557
Build Flow Plugin
Manage jobs orchestration as a dedicated "build flow" top level item
0.12

Dynamic Extended Choice Parameter Plug-In
This plugin is a sample plugin to explain how to write a Hudson plugin.
1.0.1

Extended Choice Parameter plugin
Adds extended functionality to Choice parameter
0.30

Extensible Choice Parameter plugin
Extensible Choice Parameter provides several ways to retrieve choices, including the way to share choices among all jobs.
1.2.2

-------Configurations ---------------
Base job with Bind to Field
[jenkins@usaxqkr017cczra xx_job1]$ cat config.xml
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="[email protected]">
<name>SITE</name>
<description></description>
<quoteValue>false</quoteValue>
<svnPath>false</svnPath>
<roleBasedFilter>false</roleBasedFilter>
<visibleItemCount>5</visibleItemCount>
<type>PT_SINGLE_SELECT</type>
<value></value>
<propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
<propertyKey>key</propertyKey>
<defaultValue></defaultValue>
<defaultPropertyFile></defaultPropertyFile>
<defaultPropertyKey></defaultPropertyKey>
<multiSelectDelimiter>,</multiSelectDelimiter>
<bindFieldName>INDEX</bindFieldName>
<projectName></projectName>
<svnUrl></svnUrl>
<svnUserName></svnUserName>
<svnPassword></svnPassword>
</com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition plugin="[email protected]">
<name>INDEX</name>
<description></description>
<quoteValue>false</quoteValue>
<visibleItemCount>5</visibleItemCount>
<type>PT_SINGLE_SELECT</type>
<value></value>
<propertyFile></propertyFile>
<propertyKey>key</propertyKey>
<defaultValue></defaultValue>
<defaultPropertyFile></defaultPropertyFile>
<defaultPropertyKey></defaultPropertyKey>
<multiSelectDelimiter>,</multiSelectDelimiter>
</com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>env</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>

Base job without Bind to field
[jenkins@usaxqkr017cczra xx_job1]$ cat config.xml
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition plugin="[email protected]">
<name>SITE</name>
<description></description>
<quoteValue>false</quoteValue>
<svnPath>false</svnPath>
<roleBasedFilter>false</roleBasedFilter>
<visibleItemCount>5</visibleItemCount>
<type>PT_SINGLE_SELECT</type>
<value></value>
<propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
<propertyKey>key</propertyKey>
<defaultValue></defaultValue>
<defaultPropertyFile></defaultPropertyFile>
<defaultPropertyKey></defaultPropertyKey>
<multiSelectDelimiter>,</multiSelectDelimiter>
<bindFieldName></bindFieldName>
<projectName></projectName>
<svnUrl></svnUrl>
<svnUserName></svnUserName>
<svnPassword></svnPassword>
</com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition plugin="[email protected]">
<name>INDEX</name>
<description></description>
<quoteValue>false</quoteValue>
<visibleItemCount>5</visibleItemCount>
<type>PT_SINGLE_SELECT</type>
<value></value>
<propertyFile>/dimp/zzz/sites/jenkins_choices/management.sites</propertyFile>
<propertyKey>key</propertyKey>
<defaultValue></defaultValue>
<defaultPropertyFile></defaultPropertyFile>
<defaultPropertyKey></defaultPropertyKey>
<multiSelectDelimiter>,</multiSelectDelimiter>
</com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>env</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>

Flow
[jenkins@usaxqkr017cczra xx_mod_flow]$ cat config.xml
<?xml version='1.0' encoding='UTF-8'?>
<com.cloudbees.plugins.flow.BuildFlow plugin="[email protected]">
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders/>
<publishers/>
<buildWrappers/>
<icon/>
<dsl>build("xx_job1")</dsl>
<buildNeedsWorkspace>false</buildNeedsWorkspace>
</com.cloudbees.plugins.flow.BuildFlow>

Where
cat management.sites
key=a,b,c

cat aaa.txt
key=ddd,eee

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to