blob: 6ecaeee54e3bf9440cc9ed346879a48cd1b79674 [file] [log] [blame]
Filip Pytloun260a9502017-03-16 12:47:22 +01001parameters:
2 jenkins:
3 client:
4 job:
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +02005 deploy-stack-cleanup:
Filip Pytloun260a9502017-03-16 12:47:22 +01006 type: workflow-scm
7 concurrent: true
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +02008 display_name: "Deploy - stack cleanup"
Filip Pytloun260a9502017-03-16 12:47:22 +01009 discard:
10 build:
Jakub Josef1a828962018-01-23 12:33:34 +010011 keep_num: 50
Filip Pytloun260a9502017-03-16 12:47:22 +010012 scm:
13 type: git
14 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010015 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun260a9502017-03-16 12:47:22 +010016 credentials: "gerrit"
17 script: cleanup-pipeline.groovy
18 param:
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020019 # general parameters
20 STACK_NAME:
21 type: string
22 description: This stack will be deleted.
23 STACK_TYPE:
24 type: choice
25 choices:
26 - heat
27 - aws
28 default: 'heat'
29
30 # heat parameters
Filip Pytloun260a9502017-03-16 12:47:22 +010031 OPENSTACK_API_URL:
32 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020033 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun260a9502017-03-16 12:47:22 +010034 OPENSTACK_API_CREDENTIALS:
35 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020036 default: "openstack-devcloud-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +010037 OPENSTACK_API_PROJECT:
38 type: string
Jakub Josef093b4222018-02-22 14:35:04 +010039 default: "mcp-mk"
Filip Pytloun260a9502017-03-16 12:47:22 +010040 OPENSTACK_API_CLIENT:
41 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020042 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +010043 OPENSTACK_API_VERSION:
44 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020045 default: "3"
Matthew Mosesohn480aa322017-06-01 18:46:12 +030046 OPENSTACK_API_PROJECT_DOMAIN:
kairat_kushaev12b8d1f2017-05-18 17:49:33 +040047 type: string
48 default: "default"
Matthew Mosesohn480aa322017-06-01 18:46:12 +030049 OPENSTACK_API_PROJECT_ID:
50 type: string
51 default: ""
52 OPENSTACK_API_USER_DOMAIN:
53 type: string
54 default: "default"
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020055
56 # aws parameters
57 AWS_API_CREDENTIALS:
Filip Pytloun260a9502017-03-16 12:47:22 +010058 type: string
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020059 default: "aws-credentials"
60 AWS_DEFAULT_REGION:
61 type: string
Tomáš Kukrál8c44f592017-12-06 13:35:05 +010062 default: "eu-central-1"
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020063
Jakub Josef556c7b32017-04-19 17:21:54 +020064 delete-failed-stacks:
65 type: workflow-scm
66 concurrent: true
67 display_name: "Deploy - delete failed stacks"
68 discard:
69 build:
70 keep_num: 20
71 scm:
72 type: git
73 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010074 branch: "${_param:jenkins_pipelines_branch}"
Jakub Josef556c7b32017-04-19 17:21:54 +020075 credentials: "gerrit"
76 script: delete-broken-stacks-pipeline.groovy
77 trigger:
78 timer:
Jakub Josefa753c682017-09-05 15:26:09 +020079 spec: "0 0 * * *"
Jakub Josef556c7b32017-04-19 17:21:54 +020080 param:
81 # openstack api
82 OPENSTACK_API_URL:
83 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020084 default: "https://cloud-cz.bud.mirantis.net:5000"
Jakub Josef556c7b32017-04-19 17:21:54 +020085 OPENSTACK_API_CREDENTIALS:
86 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020087 default: "openstack-devcloud-credentials"
Jakub Josef556c7b32017-04-19 17:21:54 +020088 OPENSTACK_API_PROJECT:
89 type: string
Jakub Josef093b4222018-02-22 14:35:04 +010090 default: "mcp-k8s, mcp-maintenance, mcp-mk, mcp-networking, mcp-opencontrail, mcp-oss, mcp-platform, mcp-scale, mcp-stacklight, mcp-support"
Jakub Josef556c7b32017-04-19 17:21:54 +020091 OPENSTACK_API_CLIENT:
92 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020093 default: ""
Jakub Josef556c7b32017-04-19 17:21:54 +020094 OPENSTACK_API_VERSION:
95 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +020096 default: "3"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +030097 OPENSTACK_API_PROJECT_DOMAIN:
kairat_kushaev12b8d1f2017-05-18 17:49:33 +040098 type: string
99 default: "default"
100 OPENSTACK_API_USER_DOMAIN_ID:
101 type: string
102 default: "default"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +0300103 OPENSTACK_API_PROJECT_ID:
104 type: string
105 default: ""
106 OPENSTACK_API_USER_DOMAIN:
107 type: string
108 default: "default"