Skip to content

Commit ab0a71a

Browse files
committed
fix compliance files handling
1 parent 7d9c062 commit ab0a71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.CI/common.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ void compliance() {
274274
sh "mv ${env.COMPLIANCEPREFIX}.html ${env.COMPLIANCEPREFIX}-current.html"
275275
sh "test -f ${env.COMPLIANCEPREFIX}.xml"
276276
// Only publish openmodelica-current.html if we are running master
277-
sh "cp -p ${env.COMPLIANCEPREFIX}-current.html ${env.COMPLIANCEPREFIX}${cacheBranchEscape()}-${getVersion()}.html"
277+
sh "cp -p ${env.COMPLIANCEPREFIX}-current.html ${env.COMPLIANCEPREFIX}${cacheBranch()=='master' ? '' : ('-' + cacheBranchEscape()}-${getVersion()}.html"
278278
sh "test ! '${cacheBranch()}' = 'master' || rm -f ${env.COMPLIANCEPREFIX}-current.html"
279279
stash name: "${env.COMPLIANCEPREFIX}", includes: "${env.COMPLIANCEPREFIX}-*.html"
280280
archiveArtifacts "${env.COMPLIANCEPREFIX}*${getVersion()}.html, ${env.COMPLIANCEPREFIX}.failures"

0 commit comments

Comments
 (0)