dependence

This commit is contained in:
zhangwei 2024-03-01 16:14:33 +08:00
parent 27789653c1
commit 25369524c1
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ workflow:
name: git clone name: git clone
task: git_clone@1.2.6 task: git_clone@1.2.6
input: input:
remote_url: '"https://gitlink.org.cn/jcce-pcm/pcm-openstack.git"' remote_url: '"https://gitlink.org.cn/JointCloud/pcm-openstack.git"'
ref: '"refs/heads/master"' ref: '"refs/heads/master"'
commit_id: '""' commit_id: '""'
depth: 1 depth: 1

View File

@ -1,5 +1,5 @@
rpc-gen: rpc-gen:
goctl rpc protoc ./pb/*.proto --go_out=./ --go-grpc_out=./ --zrpc_out=. goctl rpc protoc ./pb/*.proto --go_out=./ --go-grpc_out=./ --zrpc_out=.
pcm-participant-openstack: pcm-openstack:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-participant-openstack openstack.go CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-openstack openstack.go

View File

@ -15,7 +15,7 @@ podTemplate(label: label, containers: [
node(label) { node(label) {
def imageEndpoint = "jcce/${project_name}" def imageEndpoint = "jcce/${project_name}"
stage('拉取代码') { stage('拉取代码') {
checkout scmGit(branches: [[name: "*/${branches}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitlink-zj', url: 'https://gitlink.org.cn/jcce-pcm/pcm-openstack.git']]) checkout scmGit(branches: [[name: "*/${branches}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitlink-zj', url: 'https://gitlink.org.cn/JointCloud/pcm-openstack.git']])
echo "获取commit_id 作为镜像标签" echo "获取commit_id 作为镜像标签"
script { script {
env.imageTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim() env.imageTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()