blob: a0c7e00d0b0e107cfb6b5cf7432575c619827bad [file] [log] [blame]
Kailash Khalasi52bd7fc2018-07-03 13:49:44 -07001---
2# Job to re-deploy a particular node on a given maas server
3# Job requires maas server api-key and node id
4
5- project:
6 name: deploy-node
7
8 project-name: '{name}'
9
10 jobs:
11 - 'deploy-node-maas'
12
13- job-template:
14 id: deploy-node-maas
15 name: 'deploy-node-maas'
16 description: |
17 Created by {id} job-template from ci-management/jjb/redeploy-node-maas.yaml
18
19 properties:
20 - cord-infra-properties:
21 build-days-to-keep: '{build-days-to-keep}'
22 artifact-num-to-keep: '{artifact-num-to-keep}'
23
24 wrappers:
25 - lf-infra-wrappers:
26 build-timeout: '{build-timeout}'
27 jenkins-ssh-credential: '{jenkins-ssh-credential}'
28
29 parameters:
30 - string:
31 name: executorNode
32 default: 'qa-testvm-pod'
33 description: 'Name of the Jenkins node to run the job on. This node must have access to the maas server'
34
35 - string:
36 name: maas_ip
37 default: ''
38 description: 'IP of MAAS Server'
39
40 - string:
41 name: maas_api_key
42 default: ''
43 description: 'MAAS API Key'
44
45 - string:
46 name: node_id
47 default: 'rrwkmn'
48 description: 'Node Id of node to release acquire and deploy'
49
50 - string:
51 name: notificationEmail
52 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
53 description: 'List of email recipients'
54
55 project-type: pipeline
56 concurrent: false
57
58 dsl: !include-raw-escape: pipeline/redeploy-node-maas.groovy