Fix repo base url to return only url 14/6514/1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 19 Sep 2018 21:09:05 +0000 (17:09 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 19 Sep 2018 21:09:05 +0000 (17:09 -0400)
Change-Id: Ic7e3faf53fd193a3075352430fa43f74c7aa3e85
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_helper.groovy
jenkins/ci-pipelines/ci_stage_3.groovy

index 32967f5..1e724ff 100644 (file)
@@ -58,7 +58,7 @@ def lxc_file_push(container_name,file,destination) {
 def start_http_server(repo_dir,server_name) {
     sh "docker run -dit --name ${server_name} -v ${repo_dir}:/usr/local/apache2/htdocs/ httpd:2.4"
     def http_server_ip = sh(returnStdout:true,  script: "docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${server_name}").trim()
-    return "-u http://${http_server_ip}/"
+    return "http://${http_server_ip}/"
 }
 
 def lxc_get_file(container_name,file,destination) {
index 4949df8..1b4dc13 100644 (file)
@@ -156,7 +156,7 @@ node("${params.NODE}") {
     error = null
     if ( params.DO_BUILD ) {
         stage("Build") {
-            sh "make -j4 -C docker CMD_DOCKER_ARGS= TAG=${container_name} RELEASE=${params.RELEASE} REPOSITORY_BASE=${repo_base_url} REPOSITORY_KEY=${params.REPO_KEY_NAME} REPOSITORY=${params.REPOSITORY}"
+            sh "make -j4 -C docker CMD_DOCKER_ARGS= TAG=${container_name} RELEASE=${params.RELEASE} REPOSITORY_BASE=${repo_base_url} REPOSITORY_KEY=${params.REPO_KEY_NAME} REPOSITORY=${params.REPO_DISTRO}"
         }
     }