From 9fba1bdb9bff216c3d9a59e0b7ec61e7a2733922 Mon Sep 17 00:00:00 2001
From: rohitsakala <rohitsakala@gmail.com>
Date: Tue, 7 Feb 2017 01:36:37 +0530
Subject: Add pre-defined parameter for a phase job

The currentparameters for two phase jobs is set to true so that they run
on opnfv-build-ubuntu defaults and the second phase job has a
pre-defined parameter as it is to be run on testresults

Change-Id: Id5feb94f407d29f6a3d5aa88d321666f3ff463b5
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
---
 jjb/releng/testapi-automate.yml | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'jjb')

diff --git a/jjb/releng/testapi-automate.yml b/jjb/releng/testapi-automate.yml
index 1c0bd5d7f..b06072b73 100644
--- a/jjb/releng/testapi-automate.yml
+++ b/jjb/releng/testapi-automate.yml
@@ -6,12 +6,10 @@
             gs-pathname: ''
 
     phase:
-        - 'docker-update':
-            slave-label: 'opnfv-build'
+        - 'docker-update'
         - 'docker-deploy':
             slave-label: 'testresults'
-        - 'generate-doc':
-            slave-label: 'opnfv-build'
+        - 'generate-doc'
 
     jobs:
         - 'testapi-automate-{stream}'
@@ -153,6 +151,7 @@
             condition: SUCCESSFUL
             projects:
                 - name: 'testapi-automate-docker-update-{stream}'
+                  current-parameters: true
                   kill-phase-on: FAILURE
                   abort-all-job: true
         - multijob:
@@ -160,6 +159,9 @@
             condition: SUCCESSFUL
             projects:
                 - name: 'testapi-automate-docker-deploy-{stream}'
+                  current-parameters: false
+                  node-label-name: SLAVE_LABEL
+                  node-label: testresults
                   kill-phase-on: FAILURE
                   abort-all-job: true
         - multijob:
@@ -167,6 +169,7 @@
             condition: SUCCESSFUL
             projects:
                 - name: 'testapi-automate-generate-doc-{stream}'
+                  current-parameters: true
                   kill-phase-on: FAILURE
                   abort-all-job: true
 
-- 
cgit