mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +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 {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
imageName = "spring-pet-clinic"
|
||||
registryCredentials = "nexus-credentials"
|
||||
registry = "https://localhost:9081"
|
||||
dockerImage = ''
|
||||
}
|
||||
|
||||
tools {
|
||||
maven 'm3'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ('Docker build') {
|
||||
script {
|
||||
dockerImage = docker.build imageName
|
||||
}
|
||||
|
||||
}
|
||||
stage ('Build') {
|
||||
steps {
|
||||
sh './mvnw -B -DskipTests clean package'
|
||||
|
|
Loading…
Reference in a new issue