13 lines
273 B
Bash
13 lines
273 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=== Jenkins 编译 Go 项目 ==="
|
|
|
|
# 设置阿里源
|
|
export GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
|
|
|
|
echo "使用阿里源下载依赖..."
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o quincy-admin-linux
|
|
|
|
pwd
|
|
echo "✅ 编译完成" |