3rd party ci: Override GIT_BASE to use ODL Gerrit for 3rd party ci jobs 09/25809/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 12 Dec 2016 18:03:07 +0000 (19:03 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 12 Dec 2016 18:03:42 +0000 (19:03 +0100)
Change-Id: Ia105d32133c5b2df3bea363ff8cb94b2984fb172
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/3rd_party_ci/functest-netvirt.sh
jjb/3rd_party_ci/odl-netvirt.yml
jjb/3rd_party_ci/postprocess-netvirt.sh
jjb/global/slave-params.yml

index 23bf47c..abc7975 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/bash
 
 echo "Hello World"
+ls -al $WORKSPACE
index 3fd0077..d44fc36 100644 (file)
         - 'odl-netvirt-virtual-defaults'
 
     scm:
-        - git:
-            url: 'https://git.opendaylight.org/gerrit/p/$PROJECT.git'
+        #- git:
+        #    url: 'https://git.opendaylight.org/gerrit/p/$PROJECT.git'
+        #    refspec: '$GERRIT_REFSPEC'
+        #    branches:
+        #        - 'origin/$GERRIT_BRANCH'
+        #    skip-tag: true
+        #    choosing-strategy: 'gerrit'
+        #    timeout: 10
+        #    wipe-workspace: true
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
             refspec: '$GERRIT_REFSPEC'
-            branches:
-                - 'origin/$GERRIT_BRANCH'
-            skip-tag: true
             choosing-strategy: 'gerrit'
-            timeout: 10
-            wipe-workspace: true
 
     triggers:
         - gerrit:
@@ -84,6 +88,9 @@
     builders:
         - description-setter:
             description: "Built on $NODE_NAME"
+        - shell: |
+            #!/bin/bash
+            ls -al $WORKSPACE
         - multijob:
             name: install
             condition: SUCCESSFUL
index 23bf47c..abc7975 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/bash
 
 echo "Hello World"
+ls -al $WORKSPACE
index 8661b95..d1b4b8f 100644 (file)
         - label:
             name: SLAVE_LABEL
             default: 'odl-netvirt-virtual'
+        - string:
+            name: GIT_BASE
+            default: https://git.opendaylight.org/gerrit/p/$PROJECT.git
+            description: 'Git URL to use on this Jenkins Slave'
 #####################################################
 # These slaves are just dummy slaves for sandbox jobs
 #####################################################