Files
Botania/Jenkinsfile
T
Jared ba245a1499 Maven and jenkins stuff (#2623)
* Add the jenkins build number

* Create Jenkinsfile

* no crashes when no private.properties

* Changed to setupCIWorkspace
2018-06-18 19:27:57 -07:00

32 lines
691 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
stage('Setup') {
steps {
echo 'Setting up Workspace'
sh './gradlew setupCIWorkspace'
}
}
stage('Build and Deploy') {
steps {
echo 'Building and Deploying to Maven'
sh './gradlew build sort uploadArchives'
}
}
}
post {
always {
archive 'build/libs/**.jar'
}
}
}