From 9cf0d79bdd8a656fc6f554d0d471cfd6937d5e7a Mon Sep 17 00:00:00 2001 From: Siva Nagotu Date: Mon, 30 Dec 2024 15:28:02 +0000 Subject: [PATCH] DS-237 Update config text --- build/jenkins/Jenkinsfile.live.stages | 5 +++-- build/jenkins/Jenkinsfile.put.stages | 4 ++-- build/jenkins/Jenkinsfile.stages | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build/jenkins/Jenkinsfile.live.stages b/build/jenkins/Jenkinsfile.live.stages index ca0bc578..4d1fee3a 100644 --- a/build/jenkins/Jenkinsfile.live.stages +++ b/build/jenkins/Jenkinsfile.live.stages @@ -1,7 +1,8 @@ pipeline { agent any parameters { - string(name: 'LAMBDA_VERSION', defaultValue: '1', description: 'Version or alias of the RD Lambda for stage to point at') + choice(name: 'ENVIRONMENT', choices: ['build', 'live'], description: 'Environment of the Stage to deploy') + string(name: 'LAMBDA_VERSION', defaultValue: 'latest', description: 'Version or alias of the RD Lambda for stage to point at') } options { buildDiscarder(logRotator(daysToKeepStr: "7", numToKeepStr: "13")) @@ -10,7 +11,7 @@ pipeline { timeout(time: 25, unit: "MINUTES") } environment { - ENVIRONMENT = "live" + ENVIRONMENT = "${params.ENVIRONMENT}" PROFILE = "live" TF_VAR_lambda_version = "${params.LAMBDA_VERSION}" } diff --git a/build/jenkins/Jenkinsfile.put.stages b/build/jenkins/Jenkinsfile.put.stages index a9f414d4..0704e7ee 100644 --- a/build/jenkins/Jenkinsfile.put.stages +++ b/build/jenkins/Jenkinsfile.put.stages @@ -1,8 +1,8 @@ pipeline { agent any parameters { - choice(name: 'ENVIRONMENT', choices: ['uat1', 'uat2', 'uat3', 'uat4', 'ut'], description: 'Environment of the Stage to deploy') - string(name: 'LAMBDA_VERSION', defaultValue: '1', description: 'Version or alias of the RD Lambda for stage to point at') + choice(name: 'ENVIRONMENT', choices: ['build', 'uat1', 'uat2', 'uat3', 'uat4', 'ut'], description: 'Environment of the Stage to deploy') + string(name: 'LAMBDA_VERSION', defaultValue: 'latest', description: 'Version or alias of the RD Lambda for stage to point at') } options { buildDiscarder(logRotator(daysToKeepStr: "7", numToKeepStr: "13")) diff --git a/build/jenkins/Jenkinsfile.stages b/build/jenkins/Jenkinsfile.stages index b70355e4..40da88de 100644 --- a/build/jenkins/Jenkinsfile.stages +++ b/build/jenkins/Jenkinsfile.stages @@ -1,8 +1,8 @@ pipeline { agent any parameters { - choice(name: 'ENVIRONMENT', choices: ['test', 'test1', 'test2', 'test3', 'test4', 'test5', 'istest1', 'istest2', 'istest3', 'fix', 'performance', 'performance2', 'regression'], description: 'Environment of the Stage to deploy') - string(name: 'LAMBDA_VERSION', defaultValue: '1', description: 'Version or alias of the RD Lambda for stage to point at') + choice(name: 'ENVIRONMENT', choices: ['build', 'test', 'test1', 'test2', 'test3', 'test4', 'test5', 'istest1', 'istest2', 'istest3', 'fix', 'performance', 'performance2', 'regression'], description: 'Environment of the Stage to deploy') + string(name: 'LAMBDA_VERSION', defaultValue: 'latest', description: 'Version or alias of the RD Lambda for stage to point at') } options { buildDiscarder(logRotator(daysToKeepStr: '7', numToKeepStr: '13'))