Use release dir for artifact upload 47/6547/1
authorMike Marchetti <mmarchetti@sandvine.com>
Fri, 21 Sep 2018 20:01:11 +0000 (16:01 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Fri, 21 Sep 2018 20:01:11 +0000 (16:01 -0400)
Change-Id: I1ba89d80e65f4d7aec58c825004f89cda632067f
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index a788f7b..1d1527c 100644 (file)
@@ -152,6 +152,7 @@ node("${params.NODE}") {
                    rm -f changelog/changelog-osm.html
                    [ ! -d changelog ] || for mdgchange in \$(ls changelog); do cat changelog/\$mdgchange >> changelog/changelog-osm.html; done
                    """
+                RELEASE_DIR = sh(returnStdout:true,  script: 'pwd').trim()
             }
             // start an apache server to serve up the images
             http_server_name = "${container_name}-apache"
@@ -257,7 +258,7 @@ node("${params.NODE}") {
                     archiveArtifacts artifacts: "build_version.txt", fingerprint: true
 
                     // Archive the tested repo
-                    dir("repo/${RELEASE}") {
+                    dir("${RELEASE_DIR}") {
                         ci_helper.archive(params.ARTIFACTORY_SERVER,RELEASE,GERRIT_BRANCH,'tested')
                     }
                 }