CI/CD
Some checks failed
Hedgehog_server_CI/ServerMonitorBot/pipeline/head This commit looks good
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit

This commit is contained in:
2023-11-20 20:49:56 +03:00
parent 3b505398e4
commit 3c53ea17a5
2 changed files with 41 additions and 3 deletions

20
Jenkinsfile_CI Normal file
View File

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