diff options
-rw-r--r-- | jjb/functest/xtesting.yaml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml index 93dc0ac4c..bb6139abf 100644 --- a/jjb/functest/xtesting.yaml +++ b/jjb/functest/xtesting.yaml @@ -557,11 +557,26 @@ - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run' <<: *xtesting-jobs +- builder: + name: xtesting-push-containers + builders: + - shell: | + set +x + if [ "{repo}" = "_" ]; then + image={container}:{tag} + elif [ "{port}" = "None" ]; then + image={repo}/{container}:{tag} + else + image={repo}:{port}/{container}:{tag} + fi + sudo docker push $image . + - trigger: name: xtesting-commit triggers: - pollscm: cron: "*/30 * * * *" + - job-template: name: 'xtesting-{repo}-{container}-{tag}-build' parameters: @@ -574,6 +589,9 @@ - xtesting-build-containers: <<: *xtesting-build-containers ref: '{branch}' + - xtesting-push-containers: + <<: *xtesting-build-containers + ref: '{branch}' - project: name: xtesting-opnfv-xtesting-{tag}-build @@ -658,7 +676,6 @@ container: 'xtesting' jobs: - 'xtesting-{repo}-{container}-{tag}-trivy' - - project: name: 'xtesting-opnfv-xtesting-mts-trivy' <<: *xtesting-params |