This commit is contained in:
l.gabrysiak 2024-08-21 13:17:59 +02:00
parent f1aa78ff08
commit 2a2aea4757
1 changed files with 8 additions and 7 deletions

15
Jenkinsfile vendored
View File

@ -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()
}
}
}