SzkoleniaRiskoff/Jenkinsfile

32 lines
662 B
Plaintext
Raw Normal View History

2024-08-21 07:08:40 -04:00
pipeline {
2024-08-21 07:17:59 -04:00
agent {
node {
label 'agent-1'
customWorkspace './agent'
}
}
2024-08-21 07:08:40 -04:00
environment {
2024-08-21 07:17:59 -04:00
DOCKER_IMAGE = 'my-local-image-name'
2024-08-21 07:08:40 -04:00
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 {
2024-08-21 07:17:59 -04:00
cleanWs()
2024-08-21 07:08:40 -04:00
}
}
}