if [ -z ${WORKSPACE+1} ]; then
# We are not being run by Jenkins.
export WORKSPACE=$HOME/opnfv/ovsnfv
-else
- export JENKINS=true
fi
if [ ! -d $BUILD_BASE ]
then
mkdir -p $BUILD_BASE
- if [ ! -f $BUILD_BASE/config ]; then
- touch $BUILd_BASE/config
- fi
+fi
+
+if [ ! -f $BUILD_BASE/config ]; then
+ touch $BUILD_BASE/config
fi
export PATH=$PATH:$WORKSPACE/ci:$BUILD_BASE
echo "Build OVS RPM from upstream git $TAG"
echo
-mkdir -p $RPMDIR/BUILD
mkdir -p $RPMDIR/RPMS
mkdir -p $RPMDIR/SOURCES
mkdir -p $RPMDIR/SPECS
# copy artifacts.
-if [ ! -z ${JENKINS+1} ]; then
+if [[ "$JOB_NAME" =~ "daily" ]]; then
upload_artifacts.sh
fi