job.exampleJob.jenkins Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-pipeline-unit Show documentation
Show all versions of jenkins-pipeline-unit Show documentation
Jenkins Pipeline Unit testing framework
def execute() {
node() {
def utils = load "src/main/jenkins/lib/utils.jenkins"
stage('Checkout') {
checkout scm
String revision = utils.currentRevision()
gitlabBuilds(builds: ["build", "test"]) {
stage("build") {
gitlabCommitStatus("build") {
sh "mvn clean package -DskipTests -DgitRevision=$revision"
}
}
stage("test") {
gitlabCommitStatus("test") {
sh "mvn verify -DgitRevision=$revision"
}
}
}
}
}
}
return this
© 2015 - 2025 Weber Informatics LLC | Privacy Policy