Add build folder for ONAP Offline Build Jobs
[infra/cicd.git] / jjb / onap-offline / build_jobs / jjb / 1_build_stack_creation.yaml
1 - job:
2     name: '1.1_onap_offline_build_stack_creation'
3     description: 'This job creates a stack consisting of an instance and a volume attached to this instance to accommodate storage of the downloaded files and the created tar files'
4     node: onap-offline-ubuntu1804
5     parameters:
6       - string:
7           name: 'heat_environment'
8           default: 'onap_offline_heat.env'
9           description: 'Name of the heat environment file'
10       - string:
11           name: 'heat_template'
12           default: 'onap_offline_heat.tmpl'
13           description: 'Name of the heat template file'
14       - string:
15           name: 'openstack_rc'
16           default: $OPENRC_FILE
17           description: 'Openstack RC file'
18       - string:
19           name: 'remote_user'
20           default: 'centos'
21           description: 'User on target nodes'
22       - string:
23           name: 'openstack_build_stack_name'
24           default: 'onap_offline_auto_build'
25           description: 'Name of ONAP Offline build stack'
26       - string:
27           name: 'openstack_image'
28           default: 'est-centos7-1901'
29           description: 'Openstack Image name for Offline Build VM'
30       - string:
31           name: 'openstack_flavor'
32           default: '16C-32GB-500GB'
33           description: 'Openstack Flavor name for Offline Build VM'
34       - string:
35           name: 'openstack_network'
36           default: 'network.onap-offline'
37           description: 'Openstack Network name'
38       - string:
39           name: 'openstack_security_group'
40           default: 'sg.onap-offline'
41           description: 'Openstack Security Group'
42       - string:
43           name: 'openstack_ssh_key'
44           default: 'nordix-onap-offline-install'
45           description: 'Openstack SSH Key'
46       - string:
47           name: 'openstack_net_id'
48           default: 'network.onap-offline'
49           description: 'Openstack Network ID'
50       - string:
51           name: 'openstack_net_subnet'
52           default: 'network.onap-offline-subnet-ipv4'
53           description: 'Openstack SubNetwork ID'
54       - string:
55           name: 'openstack_volume'
56           default: 'onap_offline_build_volume'
57           description: 'Openstack Volume name'
58       - string:
59           name: 'openstack_volume_size'
60           default: '400'
61           description: 'Openstack Volume size (GB)'
62       - string:
63           name: 'offline_install_git_repo'
64           default: ''
65           description: 'Location of Offline Install script gerrit repository'
66       - string:
67           name: 'ssh_timeout'
68           default: '60'
69           description: 'SSH Timeout in seconds'
70     builders:
71       - shell:
72           !include-raw-escape: ../scripts/1_build_stack_creation_1.sh
73       - shell:
74           !include-raw-escape: ../scripts/1_build_stack_creation_2.sh
75       - shell:
76           !include-raw-escape: ../scripts/1_build_stack_creation_3.sh
77       - build-name-setter:
78           template: '#${BUILD_NUMBER}'
79           macro: true
80     wrappers:
81       - timestamps
82       - credentials-binding:
83           - file:
84               credential-id: 'est-jenkins-openrcfile-city-frankfurt-onap'
85               variable: OPENRC_FILE