contrail docker: split 4.x and 5.0 builds
Job template configured to consider changes from
master (4.0 and 4.1) and 5.0 branches.
Probably worth considering having dedicated 4.x branch
instead of master.
Change-Id: Ia55c7c765a32079cb746e9d313c96472e3f3dd8a
diff --git a/jenkins/client/job/docker/opencontrail.yml b/jenkins/client/job/docker/opencontrail.yml
index b5052de..0e4f40a 100644
--- a/jenkins/client/job/docker/opencontrail.yml
+++ b/jenkins/client/job/docker/opencontrail.yml
@@ -6,7 +6,11 @@
name: "docker-build-images-opencontrail-{{version}}"
jobs:
- version: oc40
+ branch: master
- version: oc41
+ branch: master
+ - version: oc50
+ branch: R5.0
template:
discard:
build:
@@ -24,7 +28,7 @@
project:
"mk/docker-opencontrail":
branches:
- - master
+ - "{{branch}}"
event:
ref:
- updated: {}
@@ -44,6 +48,9 @@
IMAGE_CREDENTIALS_ID:
type: string
default: "gerrit"
+ IMAGE_BRANCH:
+ type: string
+ default: "{{branch}}"
APT_KEY:
type: string
default: "${_param:jenkins_aptly_url}/public.gpg"