VERSION=$(echo $VERSION | sed -s "s#-SNAPSHOT##g")
BUILD_START=$(date +%Y%m%d%H%M%S)
VERSION="${VERSION}~${APPEND_TO_VERSION}${BUILD_START}+${BUILD_NUMBER}+g${GIT_COMMIT:0:7}"
- echo "=================================="
- echo $VERSION
- echo "=================================="
+ SOURCE=$(dpkg-parsechangelog 2>/dev/null|grep ^Source:|cut -d " " -f2) # get the name of the source package
+ echo "Ahout to start to build the debian packages:"
+ echo "============================================"
+ echo "$SOURCE $VERSION"
+ echo "============================================"
fi
}
dpkg-buildpackage -us -uc -b
# upload to reprepro
-SOURCE=$(dpkg-parsechangelog 2>/dev/null|grep ^Source:|cut -d " " -f2) # get the name of the source package
CHANGES_FILE=${SOURCE}_${VERSION}_amd64.changes
cd $WORKSPACE/..
# upload