Add pre-defined parameter for a phase job 47/28147/4
authorrohitsakala <rohitsakala@gmail.com>
Mon, 6 Feb 2017 20:06:37 +0000 (01:36 +0530)
committerrohitsakala <rohitsakala@gmail.com>
Mon, 6 Feb 2017 20:33:32 +0000 (02:03 +0530)
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

index 1c0bd5d..b06072b 100644 (file)
@@ -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}'
             condition: SUCCESSFUL
             projects:
                 - name: 'testapi-automate-docker-update-{stream}'
+                  current-parameters: true
                   kill-phase-on: FAILURE
                   abort-all-job: true
         - multijob:
             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:
             condition: SUCCESSFUL
             projects:
                 - name: 'testapi-automate-generate-doc-{stream}'
+                  current-parameters: true
                   kill-phase-on: FAILURE
                   abort-all-job: true