From 2a2aea4757c38afaf5c1c2504995a6340a74902c Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Wed, 21 Aug 2024 13:17:59 +0200 Subject: [PATCH] . --- Jenkinsfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cea1a54..e25a966 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,18 +1,20 @@ pipeline { - agent any - + agent { + node { + label 'agent-1' + customWorkspace './agent' + } + } environment { - DOCKER_IMAGE = 'szkolenia.riskoff.pl' + DOCKER_IMAGE = 'my-local-image-name' GIT_REPO = 'https://repo.pokash.pl/POKASH.PL/SzkoleniaRiskoff.git' } - stages { stage('Checkout') { steps { git url: "${GIT_REPO}", branch: 'main' } } - stage('Build Docker Image') { steps { script { @@ -21,10 +23,9 @@ pipeline { } } } - post { always { - cleanWs() // Czyści workspace po zakończeniu builda + cleanWs() } } }