From 08e5eade771b318e6dd0ff6ffd3e80978eee986c Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:18:46 -0400 Subject: [PATCH] added jenkins file --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c2d36d6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + tools { + jdk "jdk-17" // valid options are: "jdk-8", "jdk-16", "jdk-17" or "jdk-21", choose which one you need + } + 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' + } + } + } +}