Add multiplatform jobs for policy docker images 07/92707/23
authorPaul Vaduva <Paul.Vaduva@enea.com>
Fri, 5 Jul 2019 15:31:18 +0000 (17:31 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 5 Sep 2019 23:10:03 +0000 (01:10 +0200)
commit866558d317feb1171c4a40d9ff63f9dc99cd4a6d
treeb8bf05a0f6e35f0fd2fc8289d8100aa88eba792f
parent428d943347e054576fb801f4c57f1c50a3dd05ac
Add multiplatform jobs for policy docker images

Add three global templates needed to build multiarch images:
   - {project-name}-docker-manifest-{stream}: creates a docker
     manifest list with images for multiple architectures by calling
     docker_push_manifest.sh

   - {project-name}-multiarch-docker-stage-{stream}: multijob that
     uses the global-jjb template
     {project-name}-maven-docker-stage-{stream} to produce staging
     images for each supported arch and a manifest list for them

   - {project-name}-multiarch-{stream}-merge-java: multijob that uses
     the existing {project-name}-{stream}-merge-java template to
     produce snapshot images for each suppported arch and a manifest
     list for them

The policy/docker project jobs are modified to use the new multiarch
templates.
All images are now pushed to DockerHub instead of Nexus (as Nexus lacks
support for docker manifest list).

Cancel the triggers for child jobs, as they will be triggered by the
parent multiarch job.

For the jobs that build images, use registry registry-1.docker.io
as a workaround for [1].

Enable the multiarch jobs only for the master branch for now.

[1] https://github.com/fabric8io/docker-maven-plugin/issues/838

Issue-ID: CIMAN-217
Change-Id: Ibd00d24bb70ef51f761005016b7baea4ef66a0a5
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/global-templates-docker.yaml
jjb/global-templates-java.yaml
jjb/policy/policy-docker-base-common.yaml