diff --git a/build/jenkinsfile b/build/jenkinsfile index eba005f..3e4b18e 100644 --- a/build/jenkinsfile +++ b/build/jenkinsfile @@ -12,7 +12,7 @@ podTemplate { sh''' go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=on - CGO_ENABLED=0 go build -ldflags "-extldflags -static " -a -v -o app.exe main.go + CGO_ENABLED=0 GOOS=windows go build -ldflags "-extldflags -static " -a -v -o app.exe main.go tar -cvf out.tar *.exe configFiles/ ''' }