Skip to content

Commit 3395426

Browse files
authored
Update frogbot version (#260)
1 parent 7ab91b6 commit 3395426

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

commands/utils/consts.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ type ImageSource string
55
type vcsProvider string
66

77
const (
8-
FrogbotVersion = "2.5.8"
98
baseResourceUrl = "https://raw.githubusercontent.com/jfrog/frogbot/master/resources/"
109

1110
// Errors

commands/utils/utils.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ import (
2222

2323
const RootDir = "."
2424

25-
var TrueVal = true
25+
var (
26+
TrueVal = true
27+
FrogbotVersion = "0.0.0"
28+
)
2629

2730
type ErrMissingEnv struct {
2831
VariableName string

release/buildAndUpload.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build () {
99
exeName="$4"
1010
echo "Building $exeName for $GOOS-$GOARCH ..."
1111

12-
CGO_ENABLED=0 jf go build -o "$exeName" -ldflags '-w -extldflags "-static" -X main.frogbotVersion='$version main.go
12+
CGO_ENABLED=0 jf go build -o "$exeName" -ldflags '-w -extldflags "-static" -X github.com/jfrog/frogbot/commands/utils.FrogbotVersion='$version main.go
1313
chmod +x $exeName
1414

1515
# Run verification after building plugin for the correct platform of this image.

0 commit comments

Comments
 (0)