jenkins init
This commit is contained in:
parent
d461649989
commit
f1aa78ff08
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue