CSIT: Add rls2306 jobs
[ci-management.git] / jjb / csit / csit-terraform.yaml
1 # Copyright (c) 2023 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - project:
16     name: csit-provision
17     description: 'CSIT Jenkins jobs.'
18
19     jobs:
20       - 'csit-terraform-aws-eb-version-verify-{os}-{executor-arch}'
21       - 'csit-terraform-aws-eb-version-deploy-{os}-{executor-arch}'
22
23     project: 'csit'
24     branch: 'master'
25     os:
26       - 'ubuntu2204'
27     executor-arch: 'x86_64'
28     build-artifact-num-to-keep: 10
29
30 - job-template:
31     name: 'csit-terraform-aws-eb-version-verify-{os}-{executor-arch}'
32
33     project-type: freestyle
34     node: 's-builder-{os}-prod-{executor-arch}'
35     concurrent: false
36     latest-only: false
37
38     properties:
39       - lf-infra-properties:
40           build-days-to-keep: "{build-days-to-keep}"
41
42     parameters:
43       - project-parameter:
44           project: '{project}'
45       - gerrit-parameter:
46           branch: '{branch}'
47
48     scm:
49       - gerrit-trigger-scm:
50           credentials-id: 'jenkins-gerrit-credentials'
51           refspec: ''
52           choosing-strategy: 'default'
53
54     wrappers:
55       - fdio-infra-wrappers-non-activity-timeout:
56           build-timeout: '{build-timeout}'
57
58     triggers:
59       - gerrit-trigger-csit-terraform:
60           project: '{project}'
61           branch: '{branch}'
62           trigger-word: 'terraform-cdash-verify'
63           skip-vote: false
64
65     builders:
66       - shell:
67           !include-raw-escape:
68           - ../scripts/setup_executor_env.sh
69       - shell:
70           !include-raw-escape:
71           - ../scripts/csit/terraform-aws-eb-version-verify.sh
72
73     publishers:
74       - fdio-infra-publish
75
76 - job-template:
77     name: 'csit-terraform-aws-eb-version-deploy-{os}-{executor-arch}'
78
79     project-type: freestyle
80     node: 's-builder-{os}-prod-{executor-arch}'
81     concurrent: false
82     latest-only: false
83
84     properties:
85       - lf-infra-properties:
86           build-days-to-keep: "{build-days-to-keep}"
87
88     parameters:
89       - project-parameter:
90           project: '{project}'
91       - gerrit-parameter:
92           branch: '{branch}'
93
94     scm:
95       - gerrit-trigger-scm:
96           credentials-id: 'jenkins-gerrit-credentials'
97           refspec: ''
98           choosing-strategy: 'default'
99
100     wrappers:
101       - fdio-infra-wrappers-non-activity-timeout:
102           build-timeout: '{build-timeout}'
103
104     triggers:
105       - gerrit-trigger-csit-terraform:
106           project: '{project}'
107           branch: '{branch}'
108           trigger-word: 'terraform-cdash-deploy'
109           skip-vote: false
110
111     builders:
112       - shell:
113           !include-raw-escape:
114           - ../scripts/setup_executor_env.sh
115       - shell:
116           !include-raw-escape:
117           - ../scripts/csit/terraform-aws-eb-version-deploy.sh
118
119     publishers:
120       - fdio-infra-publish