build, jenkins: Jenkins version tag should be same as when building manually

This commit is contained in:
Jakob Borg 2016-09-06 12:54:40 +02:00
parent 7569b75d61
commit 3e51206a6b
2 changed files with 4 additions and 1 deletions

View File

@ -298,6 +298,9 @@ func runCommand(cmd string, target target) {
}
}
case "version":
fmt.Println(getVersion())
default:
log.Fatalf("Unknown command %q", cmd)
}

View File

@ -23,7 +23,7 @@ function init {
rm -f *.tar.gz *.zip *.deb
cd src/github.com/syncthing/syncthing
version=$(git describe)
version=$(go run build.go version)
echo "Building $version"
echo
}