Commit 7f1e42f7 authored by Robert Knight's avatar Robert Knight

Fetch latest tags before testing whether current build is a tag

The two most recent client releases failed to publish automatically
because the latest tags had not been fetched prior to running
`git describe` to check whether the git ref was a tag.

I'm not sure exactly what changed and why this used to work before,
but add an explicit `git fetch --tags` step.

eg. See https://jenkins.hypothes.is/job/client/job/master/483/
parent 0d6d3b0f
......@@ -41,6 +41,7 @@ node {
boolean isTag() {
try {
sh 'git fetch --tags'
sh 'git describe --exact-match --tags'
return true
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment