From 72183237ffb96384ffb6ced3ec4be89f4f5c7eaf Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Mar 12 2018 15:54:17 +0000 Subject: pass the REPO and BRANCH parameters to the duffy node --- diff --git a/.cico.pipeline b/.cico.pipeline index 5031f27..ed66806 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -1,7 +1,7 @@ def onmyduffynode(script){ ansiColor('xterm'){ timestamps{ - sh 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root ${DUFFY_NODE}.ci.centos.org -t "' + script + '"' + sh 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root ${DUFFY_NODE}.ci.centos.org -t REPO=${REPO} BRANCH=${BRANCH} "' + script + '"' } } } @@ -12,6 +12,13 @@ def syncfromduffynode(rsyncpath){ node('pagure') { + properties([ + parameters([ + string(defaultValue: "", description: "", name: "REPO"), + string(defaultValue: "", description: "", name: "BRANCH"), + ]) + ]) + stage('Allocate Node'){ env.CICO_API_KEY = readFile("${env.HOME}/duffy.key").trim() duffy_rtn=sh(