From 1fda81c51cf681b0edd74d7648f1d75f9d6e35ad Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 1 Feb 2023 08:23:05 +0000 Subject: [PATCH] environment test --- Jenkinsfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8439f4..3442663 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,9 @@ /* pipeline 변수 설정 */ -def DOCKER_IMAGE_NAME = "twofootdog/project-repo" // 생성하는 Docker image 이름 -def DOCKER_IMAGE_TAGS = "batch-visualizer-auth" // 생성하는 Docker image 태그 -def NAMESPACE = "ns-project" -def VERSION = "${env.BUILD_NUMBER}" +def label = "worker-${UUID.randomUUID().toString()}" def DATE = new Date(); - + podTemplate( - label: 'builder', + label: label, containers: [ containerTemplate(name: 'gradle', image: 'gradle:7.6-jdk11', command: 'cat', ttyEnabled: true), ], @@ -16,7 +13,7 @@ podTemplate( ) { - node('builder') { + node(label) { def myRepo = checkout scm def gitCommit = myRepo.GIT_COMMIT def gitBranch = myRepo.GIT_BRANCH