creating re-deploy node job for mcord-build to listen to
Change-Id: I52fd70b2377d58ca66c245467817527ea831a3cf
diff --git a/jjb/redeploy-node-maas.yaml b/jjb/redeploy-node-maas.yaml
new file mode 100644
index 0000000..a0c7e00
--- /dev/null
+++ b/jjb/redeploy-node-maas.yaml
@@ -0,0 +1,58 @@
+---
+# Job to re-deploy a particular node on a given maas server
+# Job requires maas server api-key and node id
+
+- project:
+ name: deploy-node
+
+ project-name: '{name}'
+
+ jobs:
+ - 'deploy-node-maas'
+
+- job-template:
+ id: deploy-node-maas
+ name: 'deploy-node-maas'
+ description: |
+ Created by {id} job-template from ci-management/jjb/redeploy-node-maas.yaml
+
+ properties:
+ - cord-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+ artifact-num-to-keep: '{artifact-num-to-keep}'
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ parameters:
+ - string:
+ name: executorNode
+ default: 'qa-testvm-pod'
+ description: 'Name of the Jenkins node to run the job on. This node must have access to the maas server'
+
+ - string:
+ name: maas_ip
+ default: ''
+ description: 'IP of MAAS Server'
+
+ - string:
+ name: maas_api_key
+ default: ''
+ description: 'MAAS API Key'
+
+ - string:
+ name: node_id
+ default: 'rrwkmn'
+ description: 'Node Id of node to release acquire and deploy'
+
+ - string:
+ name: notificationEmail
+ default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
+ description: 'List of email recipients'
+
+ project-type: pipeline
+ concurrent: false
+
+ dsl: !include-raw-escape: pipeline/redeploy-node-maas.groovy