mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 14:48:30 +00:00
build, jenkins: Jenkins version tag should be same as when building manually
This commit is contained in:
parent
7569b75d61
commit
3e51206a6b
3
build.go
3
build.go
@ -298,6 +298,9 @@ func runCommand(cmd string, target target) {
|
||||
}
|
||||
}
|
||||
|
||||
case "version":
|
||||
fmt.Println(getVersion())
|
||||
|
||||
default:
|
||||
log.Fatalf("Unknown command %q", cmd)
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user