From 72853c82bf450592613ea04bd5bb42b5a6cd030a Mon Sep 17 00:00:00 2001 From: Mihai Georgescu Date: Mon, 27 Nov 2023 14:46:24 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8856458de..63e67ee93 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,32 +3,33 @@ pipeline { stages { stage('Checkstyle') { steps { - + sh 'mvn checkstyle:checkstyle' + archiveArtifacts artifacts: 'target/checkstyle-result.html', onlyIfSuccessful: true } } stage('Tests') { steps { - + echo "now we will begin the tests" } } stage('Build') { steps { - + echo "now we will begin the build" } } stage('Create docker image') { steps { - + echo "now we will begin the creation of the docker image" } } stage('Tag the docker image') { steps { - + echo "now we will tag the docker image" } } stage('Push to DockerHub') { steps { - + echo "now we will push to the docker file" } } stage('Change stages') { @@ -38,12 +39,12 @@ pipeline { } stage('Create docker image') { steps { - + echo "now we will create the docker image for the main branch" } } stage('Push docker image to main repository') { steps { - + echo "now we will push the image to the docker main repository" } } }