forked from SUSE/susemanager-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuyuni-mu-cloud
35 lines (33 loc) · 2.6 KB
/
uyuni-mu-cloud
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
#!/usr/bin/env groovy
node('sumaform-cucumber') {
properties([
buildDiscarder(logRotator(numToKeepStr: '20')),
disableConcurrentBuilds(),
parameters([
string(name: 'cucumber_gitrepo', defaultValue: 'https://github.com/uyuni-project/uyuni.git', description: 'Testsuite Git Repository'),
string(name: 'cucumber_ref', defaultValue: 'master', description: 'Testsuite Git reference (branch, tag...)'),
string(name: 'tf_file', defaultValue: 'susemanager-ci/terracumber_config/tf_files/local_mirror.tf', description: 'Path to the tf file to be used'),
string(name: 'sumaform_gitrepo', defaultValue: 'https://github.com/maximenoel8/sumaform.git', description: 'Sumaform Git Repository'),
string(name: 'sumaform_ref', defaultValue: 'minimaformu', description: 'Sumaform Git reference (branch, tag...)'),
choice(name: 'sumaform_backend', choices: ['libvirt', 'aws'], 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'),
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...)'),
booleanParam(name: 'terraform_init', defaultValue: false, description: 'Call terraform init (needed if modules are added or changes)'),
string("region": 'eu-central-1', description: 'AWS region'),
string("availability_zone": 'eu-central-1a'), description: 'AWS availability zone',
text("ssh_allowed_ips" : '195.135.221.27', description: 'List of IP to add to the ingress separated by new line. Keep the default one (Jenkins worker)'),
text(name: 'mu_repositories',
description: 'List of MU repositories for the server, the MU are described as a list of string separated by new line')
])
])
stage('Checkout pipeline') {
checkout scm
}
timeout(activity: false, time: 10, unit: 'HOURS') {
def pipeline = load "jenkins_pipelines/environments/common/pipeline-mu-cloud.groovy"
pipeline.run(params)
}
}