mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-21 10:48:10 -05:00
29 lines
582 B
Groovy
29 lines
582 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
pipeline {
|
|
agent any
|
|
tools {
|
|
jdk "jdk-21"
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|