Skip to content
Snippets Groups Projects
Commit b5123fda authored by OZGCloud's avatar OZGCloud
Browse files

OZG-532 add mail service to build pipeline

parent d6209d9d
Branches
Tags
No related merge requests found
......@@ -55,6 +55,43 @@ pipeline {
}
}
stage('Build Mail-Service') {
steps {
script {
FAILED_STAGE=env.STAGE_NAME
}
container("maven-15"){
sh 'mvn --version'
dir('mail-service') {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS clean install -DskipTests spring-boot:build-image -Dmaven.wagon.http.retryHandler.count=3'
}
}
}
}
}
stage('Deploy mail-service to Nexus'){
when {
anyOf {
branch 'master'
branch 'release'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
}
container('maven-15') {
dir('mail-service') {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS -DskipTests deploy'
}
}
}
}
}
stage('Build Pluto-Server') {
steps {
script {
......@@ -92,6 +129,8 @@ pipeline {
}
}
stage('Push Docker image') {
steps {
script {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment