For nexus

This commit is contained in:
work 2025-02-04 12:56:42 +01:00
parent a85a35f76f
commit bd920c18a4

15
Jenkinsfile vendored
View file

@ -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'