агент
Some checks failed
Hedgehog_server/ServerMonitorBot/pipeline/head There was a failure building this commit
Some checks failed
Hedgehog_server/ServerMonitorBot/pipeline/head There was a failure building this commit
This commit is contained in:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -1,27 +1,15 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'maven:3.8-openjdk-18'
|
image 'maven:3.9.5-eclipse-temurin-17-alpine'
|
||||||
args '-v $HOME/.m2:/root/.m2'
|
args '-v /root/.m2:/root/.m2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
sh 'mvn -B -DskipTests clean package'
|
||||||
sh './mvnw compile'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw test'
|
|
||||||
junit '**/target/surefire-reports/TEST-*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Package') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package -DskipTests'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user