diff options
-rw-r--r-- | jjb/functest/functest-virtual.yaml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/jjb/functest/functest-virtual.yaml b/jjb/functest/functest-virtual.yaml index 7ec0cad6d..df027661f 100644 --- a/jjb/functest/functest-virtual.yaml +++ b/jjb/functest/functest-virtual.yaml @@ -222,10 +222,15 @@ - functest-gerrit builders: - shell: | + case "{container}" in + "components") + args="" ;; + *) + args="--build-arg BRANCH=${{branch}}" ;; + esac cd docker/$(echo {container} |cut -d\- -f 2) sudo docker build \ - --pull=false --no-cache --force-rm=true \ - --build-arg BRANCH=${{branch}} \ + ${{args}} --pull=false --no-cache --force-rm=true \ -t {repo}/functest-{container}:{tag} . - project: @@ -250,8 +255,7 @@ - job-template: name: '{repo}-functest-{tag}-gate' project-type: multijob - functest-buildparameters: *functest-buildparameters - functest-defaultparameters: *functest-defaultparameters + <<: *functest-buildparameters builders: - multijob: name: build functest-core |