almostunified/Jenkinsfile

30 lines
582 B
Text
Raw Permalink Normal View History

#!/usr/bin/env groovy
pipeline {
agent any
tools {
2024-08-22 17:32:19 -04:00
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'
}
}
}
}