[Gluster-devel] Jenkins compare-bug-version-and-git-branch fails spuriously

Niels de Vos ndevos at redhat.com
Sat Jul 4 09:29:51 UTC 2015


On Sat, Jul 04, 2015 at 10:28:26AM +0530, Atin Mukherjee wrote:
> I see two spaces between : and the bug number. Is that causing the problem?
> I remember Kaushal sent a patch recently to discard white spaces but not
> sure whether its merged or not.

This is the check that Jenkins has:

  BUG=$(git show --name-only --format=email | awk '{IGNORECASE=1} /^BUG:/{print $2}' | tail -1)
  if [ -z "${BUG}" -a "${GERRIT_TOPIC}" = "rfc" ]; then
      echo "No BUG id for rfc needed."
      exit 0
  elif [ -z "${BUG}" ]; then
      echo "No BUG id, but topic '${GERRIT_TOPIC}' does not match 'rfc'."
      exit 1
  elif ! grep -q -e '^master$' -e '^release-' <<< "${GERRIT_BRANCH}" ; then
      echo "Branch '${GERRIT_BRANCH}' can not be mapped to a version, assuming testing only."
      exit 0
  fi


The script that is active can be found here:

  http://build.gluster.org/job/compare-bug-version-and-git-branch/configure

Changes to the script should be posted as patches against the script in
the git repository:

  https://github.com/gluster/glusterfs-patch-acceptance-tests/blob/master/compare-bug-version-and-git-branch.sh

There is no automatic sync'ing between these locations. You will need to
copy/paste the updated script to the Jenkins job.

Cheers,
Niels

> 
> -Atin
> Sent from one plus one
> On Jul 4, 2015 10:16 AM, "Krishnan Parthasarathi" <kparthas at redhat.com>
> wrote:
> 
> > http://review.gluster.org/#/c/11241/ fails compare-bug jenkins test[1]
> > complaining, "No BUG id, but topic 'bug-1236272' does not match 'rfc'".
> > But the commit message has a BUG id same as in topic. Am I missing
> > something?
> >
> > [1] -
> > http://build.gluster.org/job/compare-bug-version-and-git-branch/9946/console
> > _______________________________________________
> > Gluster-devel mailing list
> > Gluster-devel at gluster.org
> > http://www.gluster.org/mailman/listinfo/gluster-devel
> >

> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-devel



More information about the Gluster-devel mailing list