diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-11-19 11:50:22 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-11-19 11:50:22 +0100 |
commit | 475486404eaf7d89dbdafd9ce244efd824371777 (patch) | |
tree | 4e0450d68596da09cd3ea73745f04a17996eaf7d /jjb/functest | |
parent | 69f3cc73c8c88e51864297199b945568a7dc5ce2 (diff) |
Pull all containers before running tests
Else we might test previous containers.
Change-Id: I53b98f99f7fe5db8ea2087c93cfc58a03103db9e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest')
-rw-r--r-- | jjb/functest/functest-virtual.yaml | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/jjb/functest/functest-virtual.yaml b/jjb/functest/functest-virtual.yaml index e9b44be1a..fb908baaf 100644 --- a/jjb/functest/functest-virtual.yaml +++ b/jjb/functest/functest-virtual.yaml @@ -7,6 +7,36 @@ - hunter - latest +- job-template: + name: '{repo}-functest-{container}-{tag}-pull' + parameters: + - functest-virtual-defaults + builders: + - shell: docker pull {repo}/functest-{container}:{tag} + +- project: + name: repo-functest-container-tag-pull + <<: *functest-defaultparameters + container: + - healthcheck + - smoke + - benchmarking + - components + - vnf + - features + jobs: + - '{repo}-functest-{container}-{tag}-pull' + +- functest-pulljobs: &functest-pulljobs + name: 'functest-pulljobs' + projects: + - name: '{repo}-functest-healthcheck-{tag}-pull' + - name: '{repo}-functest-smoke-{tag}-pull' + - name: '{repo}-functest-benchmarking-{tag}-pull' + - name: '{repo}-functest-components-{tag}-pull' + - name: '{repo}-functest-vnf-{tag}-pull' + - name: '{repo}-functest-features-{tag}-pull' + - functest-buildparameters: &functest-buildparameters name: 'functest-buildparameters' parameters: @@ -21,7 +51,7 @@ - functest-virtual-defaults builders: - shell: | - sudo docker run --rm true \ + sudo docker run --rm \ -e EXTERNAL_NETWORK=public1 \ -v /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID:\ /home/opnfv/functest/results \ @@ -194,6 +224,9 @@ - functest-virtual-defaults builders: - multijob: + name: pull containers + <<: *functest-pulljobs + - multijob: name: healthcheck <<: *functest-healthcheckjobs - multijob: |