-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmanager-4.3-qe-build-validation-PRV
70 lines (68 loc) · 5.92 KB
/
manager-4.3-qe-build-validation-PRV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env groovy
node('sumaform-cucumber-provo') {
def minionList = 'sles12sp5_client, sles12sp5_minion, sles12sp5_sshminion, ' +
'sles15sp2_client, sles15sp2_minion, sles15sp2_sshminion, ' +
'sles15sp3_client, sles15sp3_minion, sles15sp3_sshminion, ' +
'sles15sp4_client, sles15sp4_minion, sles15sp4_sshminion, ' +
'sles15sp5_client, sles15sp5_minion, sles15sp5_sshminion, ' +
'sles15sp6_client, sles15sp6_minion, sles15sp6_sshminion, ' +
'salt_migration_minion, ' +
'alma8_minion, alma8_sshminion, alma9_minion, alma9_sshminion, ' +
'centos7_client, centos7_minion, centos7_sshminion, ' +
'liberty9_minion, liberty9_sshminion, ' +
'oracle9_minion, oracle9_sshminion, ' +
'rocky8_minion, rocky8_sshminion, rocky9_minion, rocky9_sshminion, ' +
'ubuntu2004_minion, ubuntu2004_sshminion, ubuntu2204_minion, ubuntu2204_sshminion, ubuntu2404_minion, ubuntu2404_sshminion, ' +
'debian11_minion, debian11_sshminion, debian12_minion, debian12_sshminion, ' +
'opensuse155arm_minion, opensuse155arm_sshminion, ' +
'opensuse156arm_minion, opensuse156arm_sshminion, ' +
'sles15sp5s390_minion, sles15sp5s390_sshminion, ' +
'slemicro51_minion, slemicro52_minion, slemicro53_minion, slemicro54_minion, slemicro55_minion, slmicro60_minion'
properties([
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '3')),
disableConcurrentBuilds(),
parameters([
string(name: 'cucumber_gitrepo', defaultValue: 'https://github.com/SUSE/spacewalk.git', description: 'Testsuite Git Repository'),
string(name: 'cucumber_ref', defaultValue: 'Manager-4.3', description: 'Branch prepared for the MU tested'),
string(name: 'tf_file', defaultValue: 'susemanager-ci/terracumber_config/tf_files/SUSEManager-4.3-build-validation-PRV.tf', description: 'Path to the tf file to be used'),
string(name: 'sumaform_gitrepo', defaultValue: 'https://github.com/uyuni-project/sumaform.git', description: 'Sumaform Git Repository'),
string(name: 'sumaform_ref', defaultValue: 'master', description: 'Sumaform Git reference (branch, tag...)'),
choice(name: 'sumaform_backend', choices: ['libvirt'], description: 'Sumaform backend to be used (see https://github.com/uyuni-project/sumaform#backend-choice)'),
choice(name: 'terraform_bin', choices: ['/usr/bin/terraform'], description: 'Terraform binary path'),
choice(name: 'terraform_bin_plugins', choices: ['/usr/bin'], description: 'Terraform plugins path'),
string(name: 'terraform_parallelism', defaultValue: '', description: 'Advanced: Define the number of parallel resource operations for terraform'),
// Temporary: should move to uyuni-project
string(name: 'terracumber_gitrepo', defaultValue: 'https://github.com/uyuni-project/terracumber.git', description: 'Terracumber Git Repository'),
string(name: 'terracumber_ref', defaultValue: 'master', description: 'Terracumber Git ref (branch, tag...)'),
extendedChoice(name: 'minions_to_run', multiSelectDelimiter: ', ', quoteValue: false, saveJSONParameterToFile: false, type: 'PT_CHECKBOX', visibleItemCount: 15,
value: minionList,
defaultValue: minionList,
description: 'Node list to run during BV'),
booleanParam(name: 'use_previous_terraform_state', defaultValue: false, description: 'Use previous Terraform state'),
booleanParam(name: 'must_deploy', defaultValue: true, description: 'Deploy'),
booleanParam(name: 'must_run_core', defaultValue: true, description: 'Run Core features'),
booleanParam(name: 'must_sync', defaultValue: true, description: 'Sync. products and channels'),
booleanParam(name: 'enable_proxy_stages', defaultValue: true, description: 'Run Proxy stages'),
booleanParam(name: 'enable_monitoring_stages', defaultValue: true, description: 'Run Monitoring stages'),
booleanParam(name: 'enable_client_stages', defaultValue: true, description: 'Run Client stages'),
booleanParam(name: 'must_add_MU_repositories', defaultValue: true, description: 'Add MU channels'),
booleanParam(name: 'must_add_non_MU_repositories', defaultValue: true, description: 'Add non MU channels'),
booleanParam(name: 'must_add_keys', defaultValue: true, description: 'Add Activation Keys'),
booleanParam(name: 'must_create_bootstrap_repos', defaultValue: true, description: 'Create bootstrap repositories'),
booleanParam(name: 'must_boot_node', defaultValue: true, description: 'Bootstrap Node'),
booleanParam(name: 'must_run_tests', defaultValue: true, description: 'Run Smoke Tests'),
booleanParam(name: 'must_run_products_and_salt_migration_tests', defaultValue: false, description: 'Run products and Salt migration Tests'),
booleanParam(name: 'must_prepare_retail', defaultValue: false, description: 'Prepare and run Retail'),
booleanParam(name: 'must_run_containerization_tests', defaultValue: true, description: 'Run Containerization Tests'),
booleanParam(name: 'confirm_before_continue', defaultValue: false, description: 'Confirmation button between stages'),
text(name: 'mi_ids', defaultValue: '', description: 'MI Identifiers separated by comma or whitespaces (Option A)'),
text(name: 'custom_repositories', defaultValue: '{}', description: 'MU Repositories in json format (Option B)')
])
])
stage('Checkout pipeline') {
checkout scm
}
non_MU_channels_tasks_file = 'susemanager-ci/jenkins_pipelines/data/non_MU_channels_tasks_43.json'
def pipeline = load "jenkins_pipelines/environments/common/pipeline-build-validation.groovy"
pipeline.run(params)
}