SzkoleniaRiskoff/Jenkinsfile

31 lines
616 B
Plaintext
Raw Normal View History

2024-08-21 07:08:40 -04:00
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
}
}
}