X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Ffunctest%2Fxtesting.yaml;h=267514a24f7121244331b91f1f834c56a30926ff;hb=ab4b5a257813b172aebd409f68c6483d6383bb99;hp=8e2b1e82c6d8afb3e0aeb774f6362c8a1398c5a5;hpb=4678f51e158a647dd72647f7faca8353c067f4b0;p=releng.git diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml index 8e2b1e82c..267514a24 100644 --- a/jjb/functest/xtesting.yaml +++ b/jjb/functest/xtesting.yaml @@ -73,8 +73,13 @@ else image={repo}:{port}/{container}:{tag} fi + if [ "{ref_arg}" = "None" ]; then + build_arg="" + else + build_arg="--build-arg {ref_arg}={ref}" + fi cd {path} - sudo docker build --build-arg {ref_arg}={ref} \ + sudo docker build $build_arg \ --pull=false --no-cache --force-rm=true \ -t $image .