Merge "Add template for openstack promotion job"
diff --git a/jenkins/client/job/oscore/init.yml b/jenkins/client/job/oscore/init.yml
index 3fb935d..61dbda8 100644
--- a/jenkins/client/job/oscore/init.yml
+++ b/jenkins/client/job/oscore/init.yml
@@ -4,6 +4,7 @@
- system.jenkins.client.job.oscore.qa
- system.jenkins.client.job.oscore.salt_virtual_models
- system.jenkins.client.job.oscore.cookiecutter
+ - system.jenkins.client.job.oscore.release
parameters:
_param:
job_description_oscore: <br>Deploy and test OpenStack.<br>
diff --git a/jenkins/client/job/oscore/release.yml b/jenkins/client/job/oscore/release.yml
new file mode 100644
index 0000000..f73bd22
--- /dev/null
+++ b/jenkins/client/job/oscore/release.yml
@@ -0,0 +1,69 @@
+parameters:
+ jenkins:
+ client:
+ job_template:
+ promote-release-component:
+ name: "{{job_prefix}}-promote-{{component}}-{{version}}-{{distribution}}"
+ template:
+ discard:
+ build:
+ keep_num: 30
+ artifact:
+ keep_num: 30
+ type: workflow-scm
+ concurrent: true
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/openstack-ci/openstack-pipelines.git"
+ credentials: "gerrit"
+ branch: 'master'
+ script: promote-release-component.groovy
+ trigger:
+ timer:
+ spec: "{{timer_spec}}"
+ param:
+ # general
+ AIO_JOB:
+ type: string
+ description: "Job name to deploy all-ini-one envs are going to be tested"
+ default: "{{job_prefix}}-{{aioJobPrefix}}"
+ MULTINODE_JOB:
+ type: string
+ description: "Job name to deploy multinode envs are going to be tested"
+ default: "{{job_prefix}}-{{multinodeJobPrefix}}"
+ SYSTEM_DISTRIBUTION:
+ type: string
+ default: "{{distribution}}"
+ description: "Distribution of operating system"
+ COMPONENT:
+ type: string
+ default: "{{component}}"
+ description: "Tested MCP Component"
+ VERSION:
+ type: string
+ default: "{{version}}"
+ description: "Tested MCP Component"
+ SRC_REVISION:
+ type: string
+ default: "nightly"
+ description: "Tested revision of component - e.g. nightly"
+ SNAPSHOT_ID:
+ type: string
+ default: ""
+ description: "Tested snapshot id of component"
+ TARGET_REVISION:
+ type: string
+ default: "testing"
+ description: "Revision to promote SRC_REVISION to, e.g. testing"
+ TEST_SCHEME:
+ type: string
+ default: "{{test_scheme}}"
+ description: "Structure which defines parameters of deployment jobs"
+ MIRROR_HOST:
+ type: string
+ default: "mirror.mirantis.com"
+ description: "mirror with snapshots and packages"
+ AUTO_PROMOTE:
+ type: boolean
+ default: "{{auto_promote}}"
+ description: Enable to autopromote repo