|
|
|
[
Permlink
| « Hide
]
Jaroslav Gorjatsev [29/Feb/16 09:47 PM]
Also triggering via REST works, so affects only UI triggering
Found an issue. For some reason variables that were also copied along with configurations had no prompt option set (had to be No Prompt)
I tried but can not reproduce. Can you please demonstrate this issue with an sample database and get it send to [robin AT pmease DOT com]?
To repro try following:
Create confs: Root/level1/level2/level3 create var on level2, let's say named test issue following REST request for level3 config with following payload: <?xml version="1.0" ?> <com.pmease.quickbuild.model.Configuration> <id>LEVEL3_ID</id> <parent>LEVEL2_ID</parent> <name>test</name> <versionManagerDOM> <com.pmease.quickbuild.setting.configuration.version.UseSpecifiedVersion revision="0.0.0"> <version>1.0.0</version> </com.pmease.quickbuild.setting.configuration.version.UseSpecifiedVersion> </versionManagerDOM> <statusDate>2016-02-29T23:04:52.000Z</statusDate> <pluginSettingDOMs/> <data/> <stepDOMs/> <repositoryDOMs/> <aggregationDOMs/> <variables> <com.pmease.quickbuild.variable.Variable> <name>test</name> <valueProvider class="com.pmease.quickbuild.variable.CleartextValueProvider"> <value>testValue</value> </valueProvider> </com.pmease.quickbuild.variable.Variable> </variables> <notifications/> <promotions/> </com.pmease.quickbuild.model.Configuration> Click edit button in UI for this modified conf and you'll see that prompt option is not set. Or try running the conf and it will throw the exception. To fix the issue we've added explicit prompt setting, i.e: <com.pmease.quickbuild.variable.Variable> <name>test</name> <valueProvider class="com.pmease.quickbuild.variable.CleartextValueProvider"> <value>testValue</value> </valueProvider> <promptSetting class="com.pmease.quickbuild.variable.DoNotPrompt"> <remember>true</remember> <allowEmpty>false</allowEmpty> <order>100</order> <readOnly>false</readOnly> </promptSetting> </com.pmease.quickbuild.variable.Variable> The variable must have its prompt setting specified. If you are not sure about the correct format of XML, just create some template conf via UI, and then dump it via RESTful API to get it.
|