mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 18:44:44 +00:00
26 lines
530 B
Groovy
26 lines
530 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Clean') {
|
|
steps {
|
|
echo 'Cleaning Project'
|
|
sh 'chmod +x gradlew'
|
|
sh './gradlew clean'
|
|
}
|
|
}
|
|
stage('Build and Deploy') {
|
|
steps {
|
|
echo 'Building and Deploying to Maven'
|
|
sh './gradlew build sort uploadArchives'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
archive 'build/libs/**.jar'
|
|
}
|
|
}
|
|
}
|