apex: fixes daily and brahm trigger 15/7015/1
authorTim Rozet <trozet@redhat.com>
Sun, 17 Jan 2016 14:54:57 +0000 (09:54 -0500)
committerTim Rozet <trozet@redhat.com>
Sun, 17 Jan 2016 14:54:57 +0000 (09:54 -0500)
Change-Id: Iea0b5afc773532ce4cae3ed2192138c70a173569
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex.yml

index ccde879..ec9173d 100644 (file)
                 - "apex-build.*"
 
     triggers:
-        - 'apex-master'
+        - 'apex-{stream}'
 
     builders:
         - trigger-builds:
                 if [[ $BUILD_DIRECTORY == *verify* ]]; then
                   BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
                   echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
+                elif [[ $BUILD_DIRECTORY == *apex-build* ]]; then
+                  BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
+                  echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
                 fi
 
                 if [[ -f ${BUILD_DIRECTORY}/../opnfv.properties ]]; then
                       echo "BUILD_DIRECTORY is from a verify job, so will not use latest from URL"
                       echo "Check that the slave has opnfv.properties in $BUILD_DIRECTORY"
                       exit 1
+                    elif [[ $BUILD_DIRECTORY == *apex-build* ]]; then
+                      echo "BUILD_DIRECTORY is from a daily job, so will not use latest from URL"
+                      echo "Check that the slave has opnfv.properties in $BUILD_DIRECTORY"
+                      exit 1
                     fi
                     # no opnfv.properties means use the latest from artifacts.opnfv.org
                     # get the latest.properties to get the link to the latest artifact
     name: 'apex-master'
     triggers:
         - timed: '0 3 * * *'
+- trigger:
+    name: 'apex-brahmaputra'
+    triggers:
+        - timed: '0 6 * * 2050'