properties can not be empty by default? 53/3853/1
authorDan Radez <dradez@redhat.com>
Wed, 2 Dec 2015 01:13:41 +0000 (20:13 -0500)
committerDan Radez <dradez@redhat.com>
Wed, 2 Dec 2015 01:13:41 +0000 (20:13 -0500)
Change-Id: Iabec6f4a67d200cc9e2800a1f3fc7c4d2ad6eb6a
Signed-off-by: Dan Radez <dradez@redhat.com>
jjb/apex/apex.yml

index b00674b..ced678f 100644 (file)
     parameters:
         - string:
             name: ARTIFACT_NAME
-            default: ''
+            default: 'latest'
             description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
         - string:
             name: BUILD_DIRECTORY
             echo "--------------------------------------------------------"
             echo
 
-            if [[ -z "$ARTIFACT_NAME" ]]; then
+            if [[ ! "$ARTIFACT_NAME" == "latest" ]]; then
                 # if artifact name is passed the pull a
                 # specific artifact from artifacts.opnfv.org
                 RPM_INSTALL_PATH=$GS_URL/$ARTIFACT_NAME