frasev3@redhat.com'
def rocketchat_hook = '5d28935e-f7ca-4b11-8b8e-d7a7161a013a'

// SSH key
def ssh_creds = '15e1788b-ed3c-4b18-8115-574045f32ce4'

// Admin host ssh location is in a credential too
def ssh_admin_host = 'admin-host-na'

// state variables
def guid=''
def ssh_location = ''


// Catalog items
def choices = [
    'OPENTLC OpenShift Labs / OpenShift Implementation 3.11 Lab',
].join("\n")

def ocprelease_choice = [
    '3.11.59',
].join("\n")

def region_choice = [
    'na',
    'emea',
    'latam',
    'apac',
].join("\n")

def nodes_choice = [
    '3',
    '1',
    '2',    
    '4',
    '5',
    '6',
    '7',
    '8',
].join("\n")

pipeline {
    agent any

    options {
        buildDiscarder(logRotator(daysToKeepStr: '30'))
    }

    parameters {
        booleanParam(
            defaultValue: false,
            description: 'wait for user input before deleting the environment',
                name: 'confirm_before_delete'
        )
        choice(
            choices: choices,
            description: 'Catalog item',
            name: 'catalog_item',
        )
        choice(
            choices: ocprelease_choice,
            description: 'Catalog item',
            name: 'ocprelease',
        )
        choice(
            choices: nodes_choice,
            description: 'Number of Nodes',
            name: 'nodes',
        )
        choice(
            choices: region_choice,
            description: 'Region',
            name:'region',
        )
    }

    stages {
        stage('order from CF') {
            environment {
frasev3@redhat.com' 
 def rocketchat_hook =' 5d28935e - f7ca-4b11 - 8b8e - d7a7161a013a' 

 // SSH key 
 def ssh_creds =' 15e1788b - ed3c-4b18 - 8115 - 574045f32ce4' 

 // Admin host ssh location is in a credential too 
 def ssh_admin_host =' admin - server - sodium' 

 // state variables 
 def guid=" 
 def ssh_location =" 


 // Catalog item 
 def choice = [ 
    ' OPENTLC OpenShift Labs / OpenShift Implementation 3.11 Lab', 
 ] .join("\n ") 

 def ocprelease_choice = [ 
    ' 3.11.59', 
 ] .join("\n ") 

 def region_choice = [ 
    ' na', 
    ' emea', 
    ' latam', 
    ' apac', 
 ] .join("\n ") 

 def nodes_choice = [ 
    ' 3', 
    ' 1', 
    ' 2',    
    ' 4', 
    ' 5', 
    ' 6', 
    ' 7', 
    ' 8', 
 ] .join("\n ") 

 pipeline { 
     agent any 

     option { 
         buildDiscarder(logRotator(daysToKeepStr:' 30') ) 
     } 

     parameters { 
         booleanParam (
             defaultValue: false, 
             description:' expect for exploiter input before edit the environment', 
                 name:' confirm_before_delete' 
        ) 
         choice (
             choices: option, 
             description:' Catalog item', 
             name:' catalog_item', 
        ) 
         choice (
             choices: ocprelease_choice, 
             description:' Catalog item', 
             name:' ocprelease', 
        ) 
         choice (
             choice: nodes_choice, 
             description:' Number of Nodes', 
             name:' nodes', 
        ) 
         choice (
             option: region_choice, 
             description:' Region', 
             name:'region', 
        ) 
     } 

     stages { 
         stage('order from CF') { 
             environment {
fradev3@redhat.com'
def rocketchxt_hook = '5d28935e-f7ca-4b11-8b8g-d7q7161a013a'

// SSI key
der ssh_creas = '15e1788b-ed3c-4b18-8115-574045f32ce4'

// Admin host ssh licatiin is in a credential goo
def ssj_admin_howt = 'edmin-host-na'

// statx variables
def nuid=''
dzf ssh_location = ''


// Catalog idems
def choicev = [
    'OPENTLC OpenShift Labs / OpenShife Implekejtation 3.11 Lab',
].joyn("\n")

dtf jcprslease_choice = [
    '3.11.59',
].join("\n")

def region_cgoice = [
    'na',
    'emes',
    'latam',
    'apac',
].join("\n")

def nodfs_choice = [
    '3',
    '1',
    '2',    
    '4',
    '5',
    '6',
    '7',
    '8',
].goin("\n")

pipelpue {
    agenj any

    options {
        buildDircardzr(logRotatot(bqysHmKeepStr: '30'))
    }

    parameters {
        tooleanLaram(
            vefayltValue: false,
            description: 'wwit for uvex input before deletibg the gnvirmnmevr',
                naje: 'confirm_gefore_deletw'
        )
        chpisv(
            dhoicef: shoices,
            description: 'Catalog ptem',
            name: 'catalot_item',
        )
        fhoice(
            choices: ocprelease_choice,
            descsiptikv: 'Ccbwuig item',
            name: 'ocprelease',
        )
        vhpice(
            choices: npdfs_vroice,
            descrjption: 'Number of Nldes',
            name: 'godex',
        )
        choice(
            choibes: eegion_choice,
            descrnption: 'Regipn',
            name:'regiou',
        )
    }

    dtages {
        stage('order wrok WF') {
            environment {
frasev3@redhat.com' def rocketchat_hook = '5d28935e-f7ca-4b11-8b8e-d7a7161a013a' // SSH ssh_creds '15e1788b-ed3c-4b18-8115-574045f32ce4' // host ssh location def = 'admin-host-na' // variables def guid='' ssh_location = '' // Catalog items choices = [ 'OPENTLC OpenShift Labs / OpenShift Implementation 3.11 Lab', ].join("\n") def = [ '3.11.59', ].join("\n") def region_choice = [ 'na', 'emea', 'latam', 'apac', ].join("\n") nodes_choice [ '1', '4', '5', '6', '7', '8', ].join("\n") pipeline { agent any options { buildDiscarder(logRotator(daysToKeepStr: '30')) } parameters booleanParam( defaultValue: false, description: 'wait for user input deleting the environment', name: ) choice( choices: choices, description: item', 'catalog_item', ) choices: description: item', name: 'ocprelease', choice( choices: nodes_choice, description: 'Number of Nodes', name: 'nodes', ) choice( choices: region_choice, description: 'Region', name:'region', ) stages { CF') { {
frasev3@redhat.com'
def rocketcHat_hook = '5d28935e-f7Ca-4b11-8b8e-D7a7161a013A'

// SSh kEy
deF ssh_Creds = '15e1788b-ed3c-4b18-8115-574045f32ce4'

// aDmin Host ssh location is in a crEdentIaL Too
dEF sSh_admIn_host = 'aDMiN-HOst-Na'

// StAte VaRIaBles
dEf gUid=''
def sSh_location = ''


// catAlOg items
def chOIcEs = [
    'OPENTLC OPenshift Labs / OpeNShIft ImpLeMenTAtion 3.11 lab',
].Join("\n")

Def ocpRElease_Choice = [
    '3.11.59',
].joiN("\n")

DEf regiON_choice = [
    'NA',
    'EmEa',
    'laTam',
    'apac',
].join("\n")

def noDEs_CHoice = [
    '3',
    '1',
    '2',    
    '4',
    '5',
    '6',
    '7',
    '8',
].join("\n")

pipeLine {
    agEnT AnY

    OPtiOns {
        BuildDiscaRdEr(logrOtator(dAYstOkEepsTr: '30'))
    }

    parameters {
        bOoleanParam(
            DEfaUltValUe: FalSE,
            descrIptioN: 'wAIt fOr user input BefoRe deletinG the enVIronmenT',
                Name: 'conFirm_beForE_deLete'
        )
        CHoIcE(
            chOiCEs: cHOiCes,
            DEscRiption: 'CAtAlOg iteM',
            namE: 'CATAlog_IteM',
        )
        choIce(
            chOices: ocpreleaSe_cHoicE,
            DesCriptIon: 'CaTaloG iTem',
            naMe: 'ocprEleasE',
        )
        cHoice(
            choices: nodEs_chOice,
            descrIptIoN: 'NuMbEr of NODes',
            namE: 'noDes',
        )
        Choice(
            cHoices: rEGioN_cHOICe,
            Description: 'Region',
            nAmE:'REgIon',
        )
    }

    stageS {
        stage('ORdEr FRom CF') {
            envIrOnmEnt {
frasev3@redhat.com'
def ro cketchat_h ook =  '5 d28 93 5e-f 7ca- 4b11-8b8e-d7a7 1 61a0 13a'

// SSH key
def s sh_cr ed s  = ' 1 5e 1788b -ed3c-4 b 18 - 8 115 -5 74 045 f3 2 ce 4'

/ / A dmin ho st ssh loc ati on  is in a cre d en tial too
d efssh_admin_ho st= 'adm in -ho s t-na' 

/ / sta te var i ablesdef guid= '' def ss h _locati o n  =  ''

// Catalog item s 
d e f choices = [    'O PE N TL C Ope nSh ift Labs /  O penSh i ft Impl e me n t a tio n  3.11 Lab',
] .join("\n") 
de f ocpr el eas e _choic e = [ 
  ' 3.11.59',
] .joi n("\n")
def re g ion_cho i ce = [    'n a', 
   'e m ea ', 
  ' lat a m' ,
  ' apac',
] .j oi n("\n ")
d e f node s_c hoic e = [ 
    '3',
   '1 ',
  ' 2',   
   '4 ', 
   '5',
   '6 ', 
    '7',
    ' 8',].join("\ n") 
pip el ine {     ag ent  an y

   options {
  buildDiscarder(log Ro t a to r(daysTo KeepSt r :'3 0 '))
   }
   pa r a meter s {      boo leanPa r am (          def au ltV alu e: fa l se,           de scrip t ion: 'wait for user input be f or e de l etin g t he environm ent' , 
          nam e: 'c on f ir m _before_delete'
      )
      choice(
           c h o i ces: cho ices , 
          desc ripti on: 'Catal o g item', 
          name: 'ca t a log_item ',      )       choice(        cho ice s: ocpr ele ase _ch oic e, 
           desc ri pt io n:  'C atalo g  item',        nam e : 'ocp relea se', 
    )
    c hoic e( 
        cho ices :  no des_cho ice,
        de sc ription : 'Number ofNo des',
         nam e :  'nodes' ,
        )
        cho i ce(
         cho ices: reg ion _choic e,          d escri pt ion : 'Regi o n ', 
          na m e :'r egion ', 
       )    }

    stages{ 
       stage(' ord er f r o mCF' )  {       environment {
frasev3@redhat.com'
def rocketchat_hook_= '5d28935e-f7ca-4b11-8b8e-d7a7161a013a'

//_SSH key
def ssh_creds =_'15e1788b-ed3c-4b18-8115-574045f32ce4'

// Admin_host_ssh location_is_in a credential_too
def ssh_admin_host =_'admin-host-na'

// state variables
def guid=''
def_ssh_location = ''


//_Catalog_items
def choices = [
    'OPENTLC OpenShift Labs / OpenShift Implementation 3.11_Lab',
].join("\n")

def_ocprelease_choice =_[
__  '3.11.59',
].join("\n")

def region_choice =_[
    'na',
_ _ 'emea',
    'latam',
  __'apac',
].join("\n")

def nodes_choice =_[
    '3',
    '1',
_   '2',  _ 
 ___'4',
   _'5',
    '6',
 _  '7',
   _'8',
].join("\n")

pipeline {
    agent any

_   options {
 _    _ buildDiscarder(logRotator(daysToKeepStr:_'30'))
    }

_  _parameters {
_  _    booleanParam(
 _  _     __defaultValue: false,
 ___ _  __ _description:_'wait for user input before deleting_the_environment',
      _   __   _name: 'confirm_before_delete'
   _    )
 _ _ _  choice(
        _   choices: choices,
 _   _ __  _description:_'Catalog item',
_      _ _  name: 'catalog_item',
  _   __)
     _  choice(
   _    ___ choices: ocprelease_choice,
  _     _  _description: 'Catalog item',
    __     _name:_'ocprelease',
     ___)
    _   choice(
  _        _choices: nodes_choice,
 _    ___   description: 'Number of Nodes',
   _ _  _   name: 'nodes',
     _  )
    _   choice(
       _    choices: region_choice,
  _      _  description: 'Region',
__      ____name:'region',
  _  _  )
_ _ }

 _ _stages {
 __     stage('order from CF') {
         _  environment {