jjb: lava: do not use empty default params
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 6 Feb 2018 18:41:30 +0000 (13:41 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 19 Feb 2018 16:41:32 +0000 (11:41 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/system-tests/system-trigger.groovy

index d84b15ba43486b95375cb4c1ef4ec3f035fbfd3f..6833c2a58dc26fc88e84957afb94be1bb7faaf5b 100644 (file)
@@ -290,7 +290,11 @@ def LaunchJob = { jobName, runConfig ->
   def job = Hudson.instance.getJob(jobName)
   def params = []
   for (paramdef in job.getProperty(ParametersDefinitionProperty.class).getParameterDefinitions()) {
-    params += paramdef.getDefaultParameterValue();
+    // If there is a default value for this parameter, use it. Don't use empty
+    // default value parameters.
+    if (paramdef.getDefaultValue()) {
+      params += paramdef.getDefaultParameterValue();
+    }
   }
 
   params.add(new StringParameterValue('LTTNG_TOOLS_COMMIT_ID', runConfig.lttngToolsCommitId))
This page took 0.023481 seconds and 4 git commands to generate.