From 47e7a0eccde1f12e863cecc690b401d5e7bd47dd Mon Sep 17 00:00:00 2001 From: imateja Date: Sat, 9 Dec 2023 22:08:37 +0100 Subject: [PATCH] update maven exe in jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d85b52b9..2b556cded 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { stage('Checkstyle') { steps { - sh 'mvn checkstyle:checkstyle' + sh './mvnw checkstyle:checkstyle' } post { always { @@ -13,20 +13,20 @@ pipeline { } stage('Test') { steps { - sh 'mvn test' + sh './mvnw test' } } stage('Build Without Tests') { steps { - sh 'mvn clean package -DskipTests' + sh './mvnw clean package -DskipTests' } } stage('Create Docker Image and Push') { steps { script { def commitId = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim() - sh "docker build -t your-docker-hub-username/spring-petclinic:${commitId} ." - sh "docker push your-docker-hub-username/spring-petclinic:${commitId}" + sh "docker build -t mivancevic/spring-petclinic:${commitId} ." + sh "docker push mivancevic/spring-petclinic:${commitId}" } } }