#3061 pass the REPO and BRANCH parameters to the duffy node
Merged 6 years ago by pingou. Opened 6 years ago by bstinson.
bstinson/pagure ci_testing  into  ci_testing

file modified
+8 -1
@@ -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 @@ 

  

  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(

This will allow us to use the same pipeline for PRs

rebased onto 7218323

6 years ago

Pull-Request has been merged by pingou

6 years ago
Metadata