forked from DynamoDS/DynamoRevit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced jenkinsfile to call downstream job (DynamoDS#2371)
- Loading branch information
Showing
1 changed file
with
3 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,4 @@ | ||
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 { | ||
} | ||
stage ('Starting DynamoRevit build job') { | ||
def branchToBuild = env.BRANCH_NAME | ||
build job: '../DynamoRevitUtils/master', parameters: [[$class: 'StringParameterValue', name: 'BranchDynamoRevit', value: branchToBuild ]] | ||
} |