Skip to content

Commit

Permalink
added Jenkins file
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 8, 2024
1 parent 2112816 commit 95144f2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any
tools {
jdk "jdk-21" // 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 & Publish') {
steps {
echo 'Building & Publishing'
sh './gradlew build publish'
}
}
}
post {
always {
discordSend(
webhookURL: "https://discord.com/api/webhooks/1313642177083216073/H8EnQ65JusCjpqGTqLXDZI1BYBe4ArLJn3xSjEOWthg4Nwa7ZFSHu1SYag8fU4v4DB8k"
title: "GTCore ${TAG_NAME} #${BUILD_NUMBER}"
link: env.BUILD_URL
result: currentBuild.currentResult
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})\nStatus: ${currentBuild.currentResult}"
)
}
}
}

0 comments on commit 95144f2

Please sign in to comment.