catch if not using gerrit triggers
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_2.groovy
index aa4a9f4..52e2f1d 100644 (file)
@@ -62,7 +62,7 @@ def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa
     }
 
     stage('Archive') {
-        sh "mkdir changelog"
+        sh "mkdir -p changelog"
         sh "devops/tools/generatechangelog-pipeline.sh > changelog/changelog-${mdg}.html"
         sh(returnStdout:true,  script: 'devops-stages/stage-archive.sh').trim()
         ci_helper.archive(artifactory_server,mdg,branch,'untested')