fix when changelog not available
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 6cb706d..d8751bb 100644 (file)
@@ -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