Skip to content

Commit

Permalink
added Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 9, 2024
1 parent bd18344 commit 88ef783
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 :antimatter-forge:publish :antimatter-fabric:publish :antimatter-common:publish'
}
}
}
post {
always {
discordSend(
webhookURL: "https://discord.com/api/webhooks/1313642177083216073/H8EnQ65JusCjpqGTqLXDZI1BYBe4ArLJn3xSjEOWthg4Nwa7ZFSHu1SYag8fU4v4DB8k",
thumbnail: "https://raw.githubusercontent.com/GT-Reimagined/gt-reimagined.github.io/refs/heads/main/icon.png",
title: "Antimatter API ${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 88ef783

Please sign in to comment.