From 6a32b30245422bdc489945cb09e7955f8614df78 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sun, 26 Jan 2025 13:29:20 -0800 Subject: [PATCH] Moving maven - Add Jenkinsfile to configure createmod CI - Move from dev.engine_room to dev.engine-room publication group --- Jenkinsfile | 54 +++++++++++++++++++++++++++++++++++++++++++++++ gradle.properties | 4 ++-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ffe97bb37 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,54 @@ +#!/usr/bin/env groovy + +pipeline { + + agent any + + tools { + jdk "jdk-17.0.1" + } + + stages { + + stage('Setup') { + + steps { + + echo 'Setup Project' + sh 'chmod +x gradlew' + sh './gradlew clean' + } + } + + stage('Build') { + + steps { + + withCredentials([ + file(credentialsId: 'build_secrets', variable: 'ORG_GRADLE_PROJECT_secretFile'), + //file(credentialsId: 'java_keystore', variable: 'ORG_GRADLE_PROJECT_keyStore'), + file(credentialsId: 'gpg_key', variable: 'ORG_GRADLE_PROJECT_pgpKeyRing') + ]) { + + echo 'Building project.' + sh './gradlew build publish --stacktrace --warn' + } + } + } + } + + post { + + always { + + archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true + + withCredentials([ + string(credentialsId: 'discord_webhook_url', variable: 'DISCORD_URL') + ]) { + echo 'Notifying Discord..' + discordSend description: "Build: #${currentBuild.number}", link: env.BUILD_URL, result: currentBuild.currentResult, title: env.JOB_NAME, webhookURL: env.DISCORD_URL, showChangeset: true, enableArtifactsList: true + } + } + } +} diff --git a/gradle.properties b/gradle.properties index 25e0ab32f..a0caee293 100644 --- a/gradle.properties +++ b/gradle.properties @@ -43,6 +43,6 @@ sodium_version = mc1.20.1-0.5.11 embeddium_version = 0.3.25+mc1.20.1 # Publication info -flywheel_group=dev.engine_room.flywheel -vanillin_group=dev.engine_room.vanillin +flywheel_group=dev.engine-room.flywheel +vanillin_group=dev.engine-room.vanillin artifact_minecraft_version = 1.20.1