mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
For nexus
This commit is contained in:
parent
a85a35f76f
commit
bd920c18a4
1 changed files with 15 additions and 0 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -1,9 +1,24 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
environment {
|
||||||
|
imageName = "spring-pet-clinic"
|
||||||
|
registryCredentials = "nexus-credentials"
|
||||||
|
registry = "https://localhost:9081"
|
||||||
|
dockerImage = ''
|
||||||
|
}
|
||||||
|
|
||||||
tools {
|
tools {
|
||||||
maven 'm3'
|
maven 'm3'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
stage ('Docker build') {
|
||||||
|
script {
|
||||||
|
dockerImage = docker.build imageName
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw -B -DskipTests clean package'
|
sh './mvnw -B -DskipTests clean package'
|
||||||
|
|
Loading…
Reference in a new issue