Skip to content
Snippets Groups Projects
Commit 532e6b72 authored by garciadeblas's avatar garciadeblas
Browse files

Pipeline updates for v8 to allow stage3 install OSM in VIM


Change-Id: Ic54c32003b1cb4cf0d7b29962bc62d237f5d6b64
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 16b5fb13
No related branches found
Tags v3.0.0rc4
No related merge requests found
......@@ -55,8 +55,8 @@ def lxc_file_push(container_name,file,destination) {
// start a http server
// return the http server URL
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 start_http_server(repo_dir,server_name,port) {
sh "docker run -dit --name ${server_name} -p ${port}:80 -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 "http://${http_server_ip}/"
}
......
......@@ -19,7 +19,7 @@ def project_checkout(url_prefix,project,refspec,revision) {
// checkout the project
// this is done automaticaly by the multibranch pipeline plugin
// git url: "${url_prefix}/${project}"
sh "git fetch --tags"
sh "git fetch origin ${refspec}"
if (GERRIT_PATCHSET_REVISION.size() > 0 ) {
......@@ -42,7 +42,7 @@ def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa
stage('License Scan') {
if (!JOB_NAME.contains('merge')) {
sh "devops/tools/license_scan.sh"
}
}
else {
println("skip the scan for merge")
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment