CI/CD
This commit is contained in:
20
Jenkinsfile_CI
Normal file
20
Jenkinsfile_CI
Normal 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 .'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user