added more steps in pipeline

This commit is contained in:
Milan Petrovic 2025-06-11 12:54:11 +02:00
parent e31eb8b5f6
commit 6a485a711a

19
Jenkinsfile vendored
View file

@ -1,11 +1,30 @@
pipeline {
agent any
environment {
GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
DOCKER_HUB_USER = "m1kkY8"
}
stages {
stage('checkStyle') {
when { not {branch 'main' }}
steps {
sh './gradlew checkstyleMain'
}
}
stage('Test') {
when { not {branch 'main' }}
steps {
sh './gradlew test'
}
}
stage('Build') {
steps {
sh './gradlew build -x test'
}
}
}
}