mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-12-01 03:47:08 -05:00
30 lines
586 B
Text
30 lines
586 B
Text
|
#!/usr/bin/env groovy
|
||
|
|
||
|
pipeline {
|
||
|
agent any
|
||
|
tools {
|
||
|
jdk "jdk-17.0.1"
|
||
|
}
|
||
|
stages {
|
||
|
stage('Clean') {
|
||
|
steps {
|
||
|
echo 'Cleaning Project'
|
||
|
sh 'chmod +x gradlew'
|
||
|
sh './gradlew clean'
|
||
|
}
|
||
|
}
|
||
|
stage('Build') {
|
||
|
steps {
|
||
|
echo 'Building'
|
||
|
sh './gradlew build'
|
||
|
}
|
||
|
}
|
||
|
stage('Publish') {
|
||
|
steps {
|
||
|
echo 'Deploying to Maven'
|
||
|
sh './gradlew publish'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|