Skip to content

Commit

Permalink
agentLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Jan 9, 2024
1 parent 93924ec commit aab6951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/terraform.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def call(userConfig = [:]) {
if (!isBuildCauseUser) {
parallelStages['staging'] = {
stage('Staging') {
agentTemplate(finalConfig.agentContainerImage, {
agentTemplate(finalConfig.agentLabel, {
withCredentials(finalConfig.stagingCredentials) {
stage('🔎 Validate Terraform for Staging Environment') {
getInfraSharedTools(sharedToolsSubDir)
Expand All @@ -76,7 +76,7 @@ def call(userConfig = [:]) {

parallelStages['production'] = {
stage('Production') {
agentTemplate(finalConfig.agentContainerImage, {
agentTemplate(finalConfig.agentLabel, {
withCredentials(defaultConfig.productionCredentials) {
final String planFileName = 'terraform-plan-for-humans.txt'
def scmOutput
Expand Down Expand Up @@ -140,7 +140,7 @@ def call(userConfig = [:]) {
}
}

def agentTemplate(containerImage, body) {
def agentTemplate(agentLabel, body) {
node (agentLabel) {
timeout(time: 1, unit: 'HOURS') {
ansiColor('xterm') {
Expand Down

0 comments on commit aab6951

Please sign in to comment.