From f23aa04562d84127c397bf9dc1444d11fd44e103 Mon Sep 17 00:00:00 2001 From: Mihailo Date: Fri, 7 Mar 2025 14:23:33 +0100 Subject: [PATCH] Modify Jenkins file to build image every time --- Jenkinsfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68a97fd90..5afd03165 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,7 @@ pipeline { script { // Checkstyle with Gradle sh './gradlew checkstyleMain' - archiveArtifacts artifacts: 'build/reports/checkstyle/checkstyle.xml' + archiveArtifacts artifacts: 'build/reports/checkstyle/*.xml', allowEmptyArchive: true } } } @@ -51,7 +51,7 @@ pipeline { } steps { // Test using Gradle - sh './gradlew test' + sh './gradlew clean test' } } @@ -68,9 +68,6 @@ pipeline { } stage('Build Docker Image') { - when { - changeRequest() - } steps { script { // Build the Docker image