OpenContrail update pipeline job for 4.X versions
Change-Id: I4ac036a7885ecf478fc9d20192755bba13dfa06d
Related-Prod: PROD-25101
(cherry picked from commit cf7e6032c10b101622d5ad2cf3408a7268cf36c3)
diff --git a/jenkins/client/job/deploy/update/update_opencontrail4.yml b/jenkins/client/job/deploy/update/update_opencontrail4.yml
new file mode 100644
index 0000000..72ea870
--- /dev/null
+++ b/jenkins/client/job/deploy/update/update_opencontrail4.yml
@@ -0,0 +1,47 @@
+#
+# Jobs to update packages on given Salt master environment
+#
+parameters:
+ _param:
+ jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
+ jenkins:
+ client:
+ job:
+ deploy-update-opencontrail4:
+ type: workflow-scm
+ concurrent: true
+ discard:
+ build:
+ keep_num: 10
+ artifact:
+ keep_num: 10
+ display_name: "Deploy - update Opencontrail 4X"
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
+ branch: "${_param:jenkins_pipelines_branch}"
+ credentials: "gerrit"
+ script: opencontrail4-update.groovy
+ param:
+ SALT_MASTER_URL:
+ type: string
+ default: "${_param:jenkins_salt_api_url}"
+ SALT_MASTER_CREDENTIALS:
+ type: string
+ default: "salt"
+ STAGE_CONTROLLERS_UPDATE:
+ type: boolean
+ default: 'true'
+ description: "Run update on Opencontrail controllers"
+ STAGE_COMPUTES_UPDATE:
+ type: boolean
+ default: 'true'
+ description: "Run update on Opencontrail compute nodes"
+ COMPUTE_TARGET_SERVERS:
+ type: string
+ default: "cmp*"
+ description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
+ COMPUTE_TARGET_SUBSET_LIVE:
+ type: string
+ default: '1'
+ description: Number of selected nodes to live apply compute update.