forked from hyperledger-labs/business-partner-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
31 lines (26 loc) · 852 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@Library('bds-pipeline') _
pipeline {
agent any
environment {
SETTINGS_ID = 'a77b84ea-0de6-4ede-8961-060229a96fcf'
MVN_VERSION = 'maven-3.6.x'
}
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
stages {
stage('Maven Build') {
steps {
dir("backend") {
withMaven(
jdk: "java-11",
maven: "${MVN_VERSION}",
globalMavenSettingsConfig: "${SETTINGS_ID}") {
sh "mvn clean deploy -Pbuild-frontend -DaltDeploymentRepository=bds-nexus::default::https://nexus.bosch-digital.com/repository/bds-snapshots/"
sh "mvn docker:build docker:push -Ddocker.push.registry=nexus.bosch-digital.com:5000 -Ddocker.name=bds/%a"
}
}
}
}
}
}