Files
ServerMonitorBot/Jenkinsfile
L_DelOff 3b505398e4
All checks were successful
Hedgehog_server/ServerMonitorBot/pipeline/head This commit looks good
build docker stage
2023-11-20 20:08:55 +03:00

23 lines
521 B
Groovy

pipeline {
agent {
docker {
image 'maven:3.9.5-eclipse-temurin-17'
args '-v /root/.m2:/root/.m2'
}
}
stages {
stage('Build') {
steps {
sh 'ls'
sh 'mvn -B -DskipTests -X clean package'
}
}
stage('Build docker') {
steps {
sh 'ls'
sh 'ls target'
sh 'docker build -t ldeloff/servermonitorbot:latest .'
}
}
}
}