Fix params passing
* Fix passing params to sub-jobs
and sub-job itself
Change-Id: I84e4fd3d66bc043489156517e7f25879e1dc3f08
diff --git a/test-system-reclass-pipeline.groovy b/test-system-reclass-pipeline.groovy
index a49d989..afd2857 100644
--- a/test-system-reclass-pipeline.groovy
+++ b/test-system-reclass-pipeline.groovy
@@ -1,6 +1,9 @@
def gerrit = new com.mirantis.mk.Gerrit()
def common = new com.mirantis.mk.Common()
+
+slaveNode = env.SLAVE_NODE ?: 'python&&docker'
+
def gerritCredentials
try {
gerritCredentials = CREDENTIALS_ID
@@ -28,7 +31,7 @@
def systemRefspec = "HEAD"
def formulasRevision = 'testing'
timeout(time: 12, unit: 'HOURS') {
- node() {
+ node(slaveNode) {
try {
stage("Checkout") {
if (gerritRef) {
@@ -79,8 +82,8 @@
}
branches["cookiecutter"] = {
build job: "test-mk-cookiecutter-templates", parameters: [
- [$class: 'StringParameterValue', name: 'SYSTEM_GIT_URL', value: defaultGitUrl],
- [$class: 'StringParameterValue', name: 'SYSTEM_GIT_REF', value: systemRefspec],
+ [$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_URL', value: defaultGitUrl],
+ [$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_GIT_REF', value: systemRefspec],
[$class: 'StringParameterValue', name: 'DISTRIB_REVISION', value: formulasRevision]
]