feature/task-30-docker #31

Merged
L_DelOff merged 76 commits from feature/task-30-docker into master 2023-11-22 11:36:41 +03:00
Showing only changes of commit 6359c59af9 - Show all commits

30
Jenkinsfile vendored
View File

@@ -1,27 +1,15 @@
pipeline {
agent {
docker {
image 'openjdk:11.0.5-slim'
args '-v $HOME/.m2:/root/.m2'
docker {
image 'maven:3.9.5-eclipse-temurin-17-alpine'
args '-v /root/.m2:/root/.m2'
}
}
stages {
stage('Build') {
steps {
checkout scm
sh './mvnw compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
junit '**/target/surefire-reports/TEST-*.xml'
}
}
stage('Package') {
steps {
sh './mvnw package -DskipTests'
}
}
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
}
}
}