Fix gs-pathname as Google Storage doesn't handle trailing slash 13/813/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 12 Jun 2015 11:15:04 +0000 (13:15 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 12 Jun 2015 11:19:52 +0000 (13:19 +0200)
JIRA: OCTO-89

Change-Id: I85cbb81437c9ae6207d18cfdc4d44baad67fff42
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-fuel.yml

index b6c0823..79347b0 100644 (file)
@@ -25,7 +25,7 @@
             gs-pathname: ''
         - stable-arno:
             branch: 'stable/arno'
-            gs-pathname: 'arno'
+            gs-pathname: '/arno'
 
 ########################
 # job templates
         - git-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
-            branch: master
+            branch: '{branch}'
 
     logrotate:
         daysToKeep: 30
         - git-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
-            branch: master
+            branch: '{branch}'
 
     builders:
         - 'fuel-build'
         - git-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
-            branch: master
+            branch: '{branch}'
 
     logrotate:
         daysToKeep: 30
             name: GIT_BASE
             default: https://gerrit.opnfv.org/gerrit/$PROJECT
             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
-        - string:
-            name: GS_PATHNAME
-            default: '{gs-pathname}'
-            description: "Subdirectory to store artifacts for different branches."
         - string:
             name: GS_URL
-            default: artifacts.opnfv.org/$PROJECT/$INSTALLER/$GS_PATHNAME
+            default: artifacts.opnfv.org/$PROJECT/$INSTALLER{gs-pathname}
             description: "URL to Google Storage."
 
 ########################
         - shell: |
             #!/bin/bash
             set -o errexit
+            set -o nounset
             set -o pipefail
 
             # log info to console
         - shell: |
             #!/bin/bash
             set -o errexit
+            set -o nounset
             set -o pipefail
 
             # get the latest.properties file in order to get info regarding latest artifact