|
|
@ -3,18 +3,18 @@ podTemplate { |
|
|
|
|
|
|
|
env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${LOCAL}/${JOB_NAME}" |
|
|
|
env.IMAGE_NAME_SHORT = "${LOCAL}/${JOB_NAME}" |
|
|
|
env.CODE_ADDR = "${GIT_ADDRESS}/DevOps/et-go.git" |
|
|
|
env.CODE_ADDR = "${GIT_ADDRESS}/container/et-go.git" |
|
|
|
|
|
|
|
stage('Run shell') { |
|
|
|
git branch: 'dev', credentialsId: 'gitea-builder', url: "${CODE_ADDR}" |
|
|
|
container('golang-builder-1-22') { |
|
|
|
sh''' |
|
|
|
git version |
|
|
|
git config --global --add url."https://read-only:rEADoNLY7963@gitea.ngaiot.com/".insteadOf "https://gitea.ngaiot.com/" |
|
|
|
git config --global --add url."https://builder:Fs7595!EAT@gitea.anxinyun.cn/".insteadOf "https://gitea.anxinyun.cn/" |
|
|
|
unset GOPROXY |
|
|
|
go env -w GOPROXY=https://goproxy.cn,direct |
|
|
|
go env -w GO111MODULE=on |
|
|
|
go env -w GOPRIVATE=gitea.ngaiot.com |
|
|
|
go env -w GOPRIVATE=gitea.ngaiot.com,gitea.anxinyun.cn |
|
|
|
go env -w GOSUMDB=sum.golang.org |
|
|
|
go env |
|
|
|
go build -a -v -o app.exe containerApp/main.go |
|
|
|