mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-17 19:05:08 +00:00
37 lines
922 B
Groovy
37 lines
922 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout scm
|
|
sh "rm -rf build/libs"
|
|
}
|
|
}
|
|
|
|
stage('Setup') {
|
|
steps {
|
|
sh "./gradlew clean setupCIWorkspace --no-daemon"
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
sh "./gradlew build -PBUILD_NUMBER=${env.BUILD_NUMBER} --no-daemon"
|
|
}
|
|
}
|
|
|
|
stage('Archive') {
|
|
steps {
|
|
archive includes: 'build/libs/*.jar'
|
|
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'
|
|
}
|
|
}
|
|
|
|
stage('Deploy') {
|
|
steps {
|
|
sh "./gradlew publishMavenJavaPublicationToMavenRepository -PBUILD_NUMBER=${env.BUILD_NUMBER} -PDEPLOY_DIR=${env.MAVEN_DEPLOY_DIR} --no-daemon"
|
|
}
|
|
}
|
|
}
|
|
} |