mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-03-04 06:34:40 +01:00
Moving maven
- Add Jenkinsfile to configure createmod CI - Move from dev.engine_room to dev.engine-room publication group
This commit is contained in:
parent
4ca5e202a2
commit
6a32b30245
2 changed files with 56 additions and 2 deletions
54
Jenkinsfile
vendored
Normal file
54
Jenkinsfile
vendored
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue