From ab9d3651fdf65185d451535e98a218570a449b77 Mon Sep 17 00:00:00 2001 From: Eric Bischoff Date: Tue, 9 Jul 2024 15:48:31 +0200 Subject: [PATCH] Add pipelines for 5.0 refhosts --- .../manager-5.0-infra-reference-NUE | 35 +++++++++++++++++++ .../manager-5.0-infra-reference-PRV | 35 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 jenkins_pipelines/environments/manager-5.0-infra-reference-NUE create mode 100644 jenkins_pipelines/environments/manager-5.0-infra-reference-PRV diff --git a/jenkins_pipelines/environments/manager-5.0-infra-reference-NUE b/jenkins_pipelines/environments/manager-5.0-infra-reference-NUE new file mode 100644 index 000000000..351bb13e1 --- /dev/null +++ b/jenkins_pipelines/environments/manager-5.0-infra-reference-NUE @@ -0,0 +1,35 @@ +#!/usr/bin/env groovy + +node('sumaform-cucumber') { + properties([ + buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '3')), + disableConcurrentBuilds(), + pipelineTriggers([cron('H 3 * * *')]), + parameters([ + string(name: 'cucumber_gitrepo', defaultValue: 'https://github.com/SUSE/spacewalk.git', description: 'Testsuite Git Repository'), + string(name: 'cucumber_ref', defaultValue: 'Manager-5.0', description: 'Testsuite Git reference (branch, tag...)'), + string(name: 'tf_file', defaultValue: 'susemanager-ci/terracumber_config/tf_files/SUSEManager-5.0-refenv-NUE.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', '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'), + // 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...)'), + booleanParam(name: 'terraform_init', defaultValue: true, description: 'Call terraform init (needed if modules are added or changes)'), + booleanParam(name: 'terraform_taint', defaultValue: true, description: 'Call terraform taint (so the resources, except volumes, are recreated)'), + booleanParam(name: 'use_previous_terraform_state', defaultValue: true, description: 'Use previous Terraform state'), + choice(name: 'rake_namespace', choices: ['cucumber', 'parallel'], description: 'Choose [parallel] (Clients and some features will run in parallel) or [cucumber] (all sequential)') + ]) + ]) + + stage('Checkout pipeline') { + checkout scm + } + timeout(activity: false, time: 14, unit: 'HOURS') { + def pipeline = load "jenkins_pipelines/environments/common/pipeline-reference-new.groovy" + pipeline.run(params) + } +} diff --git a/jenkins_pipelines/environments/manager-5.0-infra-reference-PRV b/jenkins_pipelines/environments/manager-5.0-infra-reference-PRV new file mode 100644 index 000000000..b92348fb4 --- /dev/null +++ b/jenkins_pipelines/environments/manager-5.0-infra-reference-PRV @@ -0,0 +1,35 @@ +#!/usr/bin/env groovy + +node('sumaform-cucumber-provo') { + properties([ + buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '3')), + disableConcurrentBuilds(), + pipelineTriggers([cron('H 0 * * *')]), + parameters([ + string(name: 'cucumber_gitrepo', defaultValue: 'https://github.com/SUSE/spacewalk.git', description: 'Testsuite Git Repository'), + string(name: 'cucumber_ref', defaultValue: 'Manager-5.0', description: 'Testsuite Git reference (branch, tag...)'), + string(name: 'tf_file', defaultValue: 'susemanager-ci/terracumber_config/tf_files/SUSEManager-5.0-refenv-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', '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'), + // 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...)'), + booleanParam(name: 'terraform_init', defaultValue: true, description: 'Call terraform init (needed if modules are added or changes)'), + booleanParam(name: 'terraform_taint', defaultValue: true, description: 'Call terraform taint (so the resources, except volumes, are recreated)'), + booleanParam(name: 'use_previous_terraform_state', defaultValue: true, description: 'Use previous Terraform state'), + choice(name: 'rake_namespace', choices: ['cucumber', 'parallel'], description: 'Choose [parallel] (Clients and some features will run in parallel) or [cucumber] (all sequential)') + ]) + ]) + + stage('Checkout pipeline') { + checkout scm + } + timeout(activity: false, time: 14, unit: 'HOURS') { + def pipeline = load "jenkins_pipelines/environments/common/pipeline-reference.groovy" + pipeline.run(params) + } +}