Changeset dc8b9c30 in OpenModelica
- Timestamp:
- 2019-10-28T14:15:09+01:00 (4 years ago)
- Branches:
- maintenance/v1.13
- Parents:
- cd9628b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rc6488e52 rdc8b9c30 493 493 void patchConfigStatus() { 494 494 // Running on nodes with different paths for the workspace 495 sh 'sed -i "s,--with-ombuilddir=[A-Za-z0-9 /_-]*,--with-ombuilddir=`pwd`/build," config.status'495 sh 'sed -i "s,--with-ombuilddir=[A-Za-z0-9./_-]*,--with-ombuilddir=`pwd`/build," config.status' 496 496 } 497 497 … … 547 547 sh "test -f ${env.COMPLIANCEPREFIX}.xml" 548 548 // Only publish openmodelica-current.html if we are running master 549 sh "cp -p ${env.COMPLIANCEPREFIX}-current.html ${env.COMPLIANCEPREFIX}${cacheBranch()=='master' ? '' : ('-' + cacheBranch ()).replace('/','-')}-${getVersion()}.html"549 sh "cp -p ${env.COMPLIANCEPREFIX}-current.html ${env.COMPLIANCEPREFIX}${cacheBranch()=='master' ? '' : ('-' + cacheBranchEscape())}-${getVersion()}.html" 550 550 sh "test ! '${cacheBranch()}' = 'master' || rm -f ${env.COMPLIANCEPREFIX}-current.html" 551 551 stash name: "${env.COMPLIANCEPREFIX}", includes: "${env.COMPLIANCEPREFIX}-*.html" … … 560 560 } 561 561 562 def cacheBranchEscape() { 563 def name = (cacheBranch()).replace('maintenance/v','') 564 name = name.replace('/','-') 565 return name 566 } 567 562 568 def tagName() { 563 def name = env.TAG_NAME ?: cacheBranch ()569 def name = env.TAG_NAME ?: cacheBranchEscape() 564 570 return name == "master" ? "latest" : name 565 571 }
Note: See TracChangeset
for help on using the changeset viewer.