]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
release_tarball: select the "v" tags for cephver 5/head
authorKen Dreyer <ken.dreyer@inktank.com>
Thu, 16 Jan 2014 04:45:30 +0000 (21:45 -0700)
committerKen Dreyer <ken.dreyer@inktank.com>
Thu, 16 Jan 2014 04:55:29 +0000 (21:55 -0700)
commitdd5d14520a6fc37337f3a092ca8afc241b2fbacc
tree135609b253358d6c1aa10d0bcb82e42f44199ca0
parentcfb8ba3513532789c850850aa32c48cfc2b57323
release_tarball: select the "v" tags for cephver

By default, Jenkins' Git plugin adds its own tag to the repository. This
interferes with the versioning in release_tarball.sh

One solution would be to disable the tag in the Jenkins job. Since this
is not the default, that tag creation option would need to be manually
disabled for every job in Jenkins that runs this script. The other
option is to make the script more selective about what it considers to
be cephver. This commit implements this option.

Use a --match selector to "git describe" so that we're sure we're using
the standard "vX.X" tags.

Pipe "git describe" through "sed" instead of "cut", so that it's easier
to debug what tag was selected.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
release_tarball.sh