Change-Id: Ic7e3faf53fd193a3075352430fa43f74c7aa3e85
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
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) {
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}"
}
}