File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments