Skip to content

Commit

Permalink
added jenkins file
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Oct 23, 2024
1 parent 13052fb commit 08e5ead
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}

0 comments on commit 08e5ead

Please sign in to comment.