Browse Source

Display jenkins-debian-glue version in script output

This makes debugging easier if all we have are build logs
merge-requests/109/head
Michael Prokop 10 years ago
parent
commit
cce10fb043
  1. 5
      scripts/build-and-provide-package
  2. 5
      scripts/generate-git-snapshot
  3. 5
      scripts/generate-reprepro-codename
  4. 5
      scripts/generate-svn-snapshot

5
scripts/build-and-provide-package

@ -9,6 +9,11 @@ PATH='/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin'
echo "*** Starting $0 at $(date) ***"
start_seconds=$(cut -d . -f 1 /proc/uptime)
JENKINS_DEBIAN_GLUE_VERSION=$(dpkg --list jenkins-debian-glue 2>/dev/null | awk '/^ii/ {print $3}')
if [ -n "${JENKINS_DEBIAN_GLUE_VERSION:-}" ] ; then
echo "*** Running jenkins-debian-glue version $JENKINS_DEBIAN_GLUE_VERSION ***"
fi
checks_and_defaults() {
if [ -r /etc/jenkins/debian_glue ] ; then
. /etc/jenkins/debian_glue

5
scripts/generate-git-snapshot

@ -22,6 +22,11 @@ if [ -z "${GIT_COMMIT:-}" ] ; then
exit 1
fi
JENKINS_DEBIAN_GLUE_VERSION=$(dpkg --list jenkins-debian-glue 2>/dev/null | awk '/^ii/ {print $3}')
if [ -n "${JENKINS_DEBIAN_GLUE_VERSION:-}" ] ; then
echo "*** Running jenkins-debian-glue version $JENKINS_DEBIAN_GLUE_VERSION ***"
fi
# we want to get a version string like
# $ORIG_VERSION+0~$TIMESTAMP.$BUILD_NUMBER~1.$GIT_ID
# so the version is always increasing over time, no matter what

5
scripts/generate-reprepro-codename

@ -20,6 +20,11 @@ fi
# repository/codename that should be added
REPOS="$1"
JENKINS_DEBIAN_GLUE_VERSION=$(dpkg --list jenkins-debian-glue 2>/dev/null | awk '/^ii/ {print $3}')
if [ -n "${JENKINS_DEBIAN_GLUE_VERSION:-}" ] ; then
echo "*** Running jenkins-debian-glue version $JENKINS_DEBIAN_GLUE_VERSION ***"
fi
if [ -z "${REPOSITORY:-}" ] ; then
REPOSITORY='/srv/repository'
echo "*** Repository variable REPOSITORY is unset, using default [$REPOSITORY] ***"

5
scripts/generate-svn-snapshot

@ -40,6 +40,11 @@ if ! [ -x "$(which dpkg-parsechangelog)" ] ; then
exit 1
fi
JENKINS_DEBIAN_GLUE_VERSION=$(dpkg --list jenkins-debian-glue 2>/dev/null | awk '/^ii/ {print $3}')
if [ -n "${JENKINS_DEBIAN_GLUE_VERSION:-}" ] ; then
echo "*** Running jenkins-debian-glue version $JENKINS_DEBIAN_GLUE_VERSION ***"
fi
echo "*** source package build phase ***"
rm -f ./* || true

Loading…
Cancel
Save