summaryrefslogtreecommitdiffstats
path: root/jjb/functest/xtesting.yaml
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-02-10 00:20:40 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-02-10 00:20:40 +0100
commit09c62ce05efd70ae247de55c1646466951208333 (patch)
tree3627b2b4a115b72ada5bb45646f019318bf59fe2 /jjb/functest/xtesting.yaml
parentbddf218bd60dd610d6cf27bc9bed5a3a1e136dbf (diff)
Push containers once built
Change-Id: I19239a4ef176954e34c9098521bb6c4b8df46b14 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest/xtesting.yaml')
-rw-r--r--jjb/functest/xtesting.yaml19
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