Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-11-27 14:46:24 +02:00 committed by GitHub
parent 33f019e227
commit 72853c82bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
Jenkinsfile vendored
View file

@ -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"
}
}
}