|
|
|
@@ -1,11 +1,15 @@ |
|
|
|
node { |
|
|
|
def workspace=pwd() |
|
|
|
// 版本 |
|
|
|
def tag = "0.8" |
|
|
|
// 镜像仓库的地址 |
|
|
|
// def harbor_url = "192.168.81.102:85" |
|
|
|
// 镜像仓库的项目,这里建议项目名称和jenkins的item项目名称、以及harbor的项目名称保持一致,否则用一下脚本会出问题 |
|
|
|
// def harbor_project = "demo" |
|
|
|
|
|
|
|
def mavenPath="/usr/share/maven" |
|
|
|
tools { |
|
|
|
maven 'Maven 3.8.8' |
|
|
|
} |
|
|
|
// 拉取代码 |
|
|
|
stage('pull code') { |
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/${branch}']], extensions: [], userRemoteConfigs: [[credentialsId: '0f6d6eaa8754e735262afa495fe2828d611fca17', url: 'http://39.105.23.186:3000/develop/digimeta-MultiSaas.git']]]) |
|
|
|
@@ -47,4 +51,4 @@ node { |
|
|
|
//echo "镜像推送成功" |
|
|
|
//} |
|
|
|
} |
|
|
|
} |
|
|
|
} |