From: Mike Marchetti Date: Sat, 18 Nov 2017 17:28:11 +0000 (-0500) Subject: fix when changelog not available X-Git-Tag: v3.0.2~13 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F5704%2F1;hp=3a0fc42d6a01912debb9e8fbcff8a89d111ded72;p=osm%2Fdevops.git fix when changelog not available Change-Id: I0c119052a662ff67371c6c430fbd9a7753852cc7 Signed-off-by: Mike Marchetti --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 6cb706d3..d8751bb7 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -133,7 +133,7 @@ node("${params.NODE}") { // merge the change logs sh """ rm -f changelog/osm-changelog.html - [ -d changelog ] && for mdgchange in \$(ls changelog); do cat changelog/\$mdgchange >> changelog/osm-changelog.html; done + [ ! -d changelog ] || for mdgchange in \$(ls changelog); do cat changelog/\$mdgchange >> changelog/osm-changelog.html; done """ } // start an apache server to serve up the images