From c4aa826b0e9eda9b30affff6d280734feb53b42a Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Thu, 9 Dec 2021 23:06:16 -0800 Subject: [PATCH] Force pod template label, not container --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5146a7d..a81e54c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,7 @@ def label = "mypod-${UUID.randomUUID().toString()}" -podTemplate(containers: [ +podTemplate(label: label, containers: [ containerTemplate( - label: label, name: 'maven', image: 'maven:3.8.4-openjdk-11', command: 'sleep',