All Downloads are FREE. Search and download functionalities are using the official Maven repository.

job.exampleJob.jenkins Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
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