Jenkinsfile 729 Bytes
Newer Older
Romain Bioteau's avatar
Romain Bioteau committed
1 2 3
#!/usr/bin/env groovy

node {
4 5 6 7 8 9 10 11 12 13
    stage("⬇️ Setup") {
        // Needed to fetch tags since they are not retrieved by default
        checkout([
                $class: 'GitSCM',
                branches: scm.branches,
                doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
                extensions: [[$class: 'CloneOption', noTags: false, shallow: false, depth: 0, reference: '']],
                userRemoteConfigs: scm.userRemoteConfigs,
        ])
    }
Romain Bioteau's avatar
Romain Bioteau committed
14 15 16 17 18 19

    stage('🔧 Build') {
        try {
            sh './gradlew clean build'
        } finally {
            junit '**/build/test-results/**/*.xml'
20
            archiveArtifacts '**/build/distributions/*.zip'
Romain Bioteau's avatar
Romain Bioteau committed
21 22 23 24
        }
    }

}