1 Star 0 Fork 2

岁寒松柏/DynamoRevit-revit2018

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Jenkinsfile 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
Ziyun Shang 提交于 2018-07-31 11:23 . update Jenkinsfile
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 {
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/xusongsong/DynamoRevit-revit2018.git
[email protected]:xusongsong/DynamoRevit-revit2018.git
xusongsong
DynamoRevit-revit2018
DynamoRevit-revit2018
master

搜索帮助