Skip to content

Commit

Permalink
node not agent
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Jan 3, 2024
1 parent 7ccc42b commit 93924ec
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions vars/terraform.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,11 @@ def call(userConfig = [:]) {
}

def agentTemplate(containerImage, body) {
agent {
label 'agentLabel'
}
timeout(time: 1, unit: 'HOURS') {
ansiColor('xterm') {
body.call()
node (agentLabel) {
timeout(time: 1, unit: 'HOURS') {
ansiColor('xterm') {
body.call()
}
}
}
// podTemplate(
Expand Down

0 comments on commit 93924ec

Please sign in to comment.