代码拉取完成,页面将自动刷新
node('D4R') {
currentBuild.result = 'SUCCESS'
def batFolder = "C:\\DeployTool"
def branch = "master"
try {
stage('Checkout') {
echo "Checkout ..."
try {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '../DynamoRevit'] , [$class: 'CleanBeforeCheckout'], [$class: 'GitLFSPull']], gitTool: 'default', submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'aecbuild', url: 'https://git.autodesk.com/Dynamo/DynamoRevit.git']]])
} catch(err) {
echo "Git Checkout Failed: $err"
currentBuild.result = 'FAILURE'
throw err
}
}
stage('Revit API Download') {
echo "RevitAPI and RevitAPIUI download and extract ..."
try {
bat batFolder + '\\' + 'RevitAPInuGet.bat'
} catch(err) {
echo "RevitAPI or RevitAPIUI Download or Extract Error: $err"
currentBuild.result = 'FAILURE'
throw err
}
}
stage('Build') {
echo "Build..."
try {
bat batFolder + '\\' + 'BuildSolutions.bat'
} catch(err) {
echo "Dynamo or DynamoRevit Build Failed: $err"
currentBuild.result = 'FAILURE'
throw err
}
}
if (branch == 'master') {
stage('Deployment to Artifactory') {
try {
dir('../DynamoRevit/') {
bat batFolder + '\\' + 'Deploy.bat'
}
} catch(err) {
echo "Deployment to Artifactory Failed: $err"
currentBuild.result = 'FAILURE'
throw err
}
}
}
} finally {
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。