Re: Jenkins compare-bug-version-and-git-branch fails spuriously

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> 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@xxxxxxxxxxx
> > http://www.gluster.org/mailman/listinfo/gluster-devel
> >

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

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux