31 lines
616 B
Groovy
31 lines
616 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
environment {
|
|
DOCKER_IMAGE = 'szkolenia.riskoff.pl'
|
|
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 {
|
|
docker.build("${DOCKER_IMAGE}:latest")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
cleanWs() // Czyści workspace po zakończeniu builda
|
|
}
|
|
}
|
|
}
|