From b83a933124474dde44b905e7394572e3d270181a Mon Sep 17 00:00:00 2001 From: Tanner Lewis Date: Tue, 8 Oct 2024 12:04:39 -0500 Subject: [PATCH] Update lock structure --- vars/cleanupDeployment.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vars/cleanupDeployment.groovy b/vars/cleanupDeployment.groovy index fb1fd86db..334ff0269 100644 --- a/vars/cleanupDeployment.groovy +++ b/vars/cleanupDeployment.groovy @@ -6,13 +6,12 @@ def call(Map config = [:]) { parameters { string(name: 'GIT_REPO_URL', defaultValue: 'https://github.com/opensearch-project/opensearch-migrations.git', description: 'Git repository url') string(name: 'GIT_BRANCH', defaultValue: 'main', description: 'Git branch to use for repository') - string(name: 'STAGE_GROUP', defaultValue: 'rfs-integ', description: 'Deployment stage group name (e.g. rfs-integ)') string(name: 'STAGE', description: 'Deployment stage name in group to delete (e.g. rfs-integ1)') } options { // Acquire lock on a given deployment stage - lock(label: params.STAGE_GROUP, resource: params.STAGE, quantity: 1, variable: 'stage') + lock(resource: params.STAGE, variable: 'stage') timeout(time: 1, unit: 'HOURS') buildDiscarder(logRotator(daysToKeepStr: '30')) }