Adds vars/getAgent.groovy and vars/log.groovy

This commit is contained in:
2025-10-25 14:48:08 -03:00
commit d9c7e1e6e7
2 changed files with 18 additions and 0 deletions

15
vars/getAgent.groovy Normal file
View File

@@ -0,0 +1,15 @@
def call(String configName) {
def bananaAgentId = 'banana'
switch(configName) {
case 'default':
case 'agent-1':
return bananaAgentId
case 'agent-2':
return 'strawberry'
case 'agent-3':
return 'watermelon'
default:
return bananaAgentId
}
}