jenkins init

This commit is contained in:
l.gabrysiak 2024-08-21 13:08:40 +02:00
parent d461649989
commit f1aa78ff08
1 changed files with 30 additions and 0 deletions

30
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,30 @@
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
}
}
}