SzkoleniaRiskoff/Jenkinsfile

32 lines
662 B
Groovy

pipeline {
agent {
node {
label 'agent-1'
customWorkspace './agent'
}
}
environment {
DOCKER_IMAGE = 'my-local-image-name'
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()
}
}
}