summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-script.yaml
diff options
context:
space:
mode:
authorJulienBe <jb379x@att.com>2017-03-08 13:07:21 -0800
committerJulienBe <jb379x@att.com>2017-03-09 07:44:11 -0800
commita247e9f6f260b463f50fb5af072be9e25c7aec3f (patch)
tree96c677e5e61df93bf38ae1e377e19e551344fe42 /jjb/global-templates-script.yaml
parent8273b049ede47533600ebbad58a933080d8e962a (diff)
new job to release docker images
pull docker image from release, tag it, push it to release Change-Id: I2418b5ae085fe09ed00f7ebaa6ceed4664c236ed Signed-off-by: JulienBe <jb379x@att.com>
Diffstat (limited to 'jjb/global-templates-script.yaml')
-rw-r--r--jjb/global-templates-script.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/jjb/global-templates-script.yaml b/jjb/global-templates-script.yaml
index 905813302..3932d07d2 100644
--- a/jjb/global-templates-script.yaml
+++ b/jjb/global-templates-script.yaml
@@ -793,3 +793,42 @@
# publishers:
# - ecomp-infra-shiplogs:
# maven-version: '{maven-version}'
+
+- job-template:
+ # 1. PULL the desired image
+ # 2. TAG it to the desired release name
+ # 3. PUSH the newly tagged image on release repo
+
+ name: '{project-name}-docker-image-blessing'
+
+ project-type: freestyle
+ concurrent: true
+ node: 'ubuntu1604-docker-2c-1g'
+
+ parameters:
+ - string:
+ name: VERSION
+ description: "VERSION of the STAGING image to bless into this RELEASE VERSION
+ Example : 1.2.3"
+ - string:
+ name: TIMESTAMP
+ description: "TIMESTAMP of the STAGING image to pull
+ Example : 20170308T1332"
+ - string:
+ name: PROJECT
+ default: '{project}'
+
+ properties:
+ - ecomp-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ wrappers:
+ - ecomp-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ - provide-maven-settings:
+ global-settings-file: 'global-settings'
+ settings-file: '{mvn-settings}'
+ - docker-login
+ - shell: !include-raw: include-docker-blessing.sh \ No newline at end of file