This commit is contained in:
parent
f1aa78ff08
commit
2a2aea4757
|
|
@ -1,18 +1,20 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
node {
|
||||||
|
label 'agent-1'
|
||||||
|
customWorkspace './agent'
|
||||||
|
}
|
||||||
|
}
|
||||||
environment {
|
environment {
|
||||||
DOCKER_IMAGE = 'szkolenia.riskoff.pl'
|
DOCKER_IMAGE = 'my-local-image-name'
|
||||||
GIT_REPO = 'https://repo.pokash.pl/POKASH.PL/SzkoleniaRiskoff.git'
|
GIT_REPO = 'https://repo.pokash.pl/POKASH.PL/SzkoleniaRiskoff.git'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
git url: "${GIT_REPO}", branch: 'main'
|
git url: "${GIT_REPO}", branch: 'main'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
@ -21,10 +23,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
cleanWs() // Czyści workspace po zakończeniu builda
|
cleanWs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue