Fix random seed pass for each wf-job run
* fix for more general way
PRODX-48965
Related: PRODX-47114
Change-Id: Ia73aa4cba92e868fae7bee82641f22e8b0f1e704
diff --git a/src/com/mirantis/mk/Workflow.groovy b/src/com/mirantis/mk/Workflow.groovy
index 86ca836..e8f4ba2 100644
--- a/src/com/mirantis/mk/Workflow.groovy
+++ b/src/com/mirantis/mk/Workflow.groovy
@@ -225,7 +225,9 @@
}
// Inject hidden random parameter (is not showed in jjb) to be sure we are triggering unique downstream job.
// Most actual case - parallel run for same jobs( but with different params)
- parameters.addAll([string(name: 'RANDOM_SEED_STRING', value: "${env.JOB_NAME.toLowerCase()}-${env.BUILD_NUMBER}-${UUID.randomUUID().toString().split('-')[0]}")])
+ parameters.add([$class: "StringParameterValue",
+ name : "RANDOM_SEED_STRING",
+ value : "${env.JOB_NAME.toLowerCase()}-${env.BUILD_NUMBER}-${UUID.randomUUID().toString().split('-')[0]}"])
common.infoMsg(_msg)
return parameters
}