Fix the docker build image workflow 31/59731/2 v1.2.0
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Wed, 8 Aug 2018 13:08:08 +0000 (06:08 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Wed, 8 Aug 2018 14:36:35 +0000 (07:36 -0700)
commitbe84b41f0eb2c390bf220b0f6f007190642449bd
treec0ce3ff12d141fb2bfac4c7dfa2444bd199eebea
parent604d385c7678bc7abd1ebbd85218484910e70e8a
Fix the docker build image workflow

Fixed the Docker build image workflow.

Added seperate tagging for SNAPSHOT-latest and STAGING-latest

There are two docker jobs currently. One produces SNAPSHOT images
and other produces STAGING images. SNAPSHOT images are build from
nexus2 maven snapshots artifacts where as STAGING images are built
from nexus2 maven releases artifacts.

Removed libxml2-utils dependency from docker build image script.
Since the dedicated docker node might be shared by multiple jobs,
apt-get install inside the script might cause conflict and cause
failure of the docker jenkins jobs. Moved the dependency to be part
of the jenkins infrastructure node itself.

Change-Id: Ib33681ade6408a1116a5be84f19d0bf84e188aac
Issue-ID: OPTFRA-301
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
docker/build_image.sh