aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorSizableShrimp <sizableshrimp@sizableshrimp.me>2023-07-18 01:01:00 -0500
committerSizableShrimp <sizableshrimp@sizableshrimp.me>2023-07-18 01:01:00 -0500
commit1d671ed9f1aad8cc68f18afda47febdddd60f0d8 (patch)
tree01d50cccc1263dee97062a96272129973a913cd0 /Jenkinsfile
parent4d6cf31fbad5d043de2ac248538015a14875e00f (diff)
downloadArtifactural-1d671ed9f1aad8cc68f18afda47febdddd60f0d8.tar.gz
Artifactural-1d671ed9f1aad8cc68f18afda47febdddd60f0d8.tar.bz2
Artifactural-1d671ed9f1aad8cc68f18afda47febdddd60f0d8.zip
Update to NeoForged and support Gradle 8.2+
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile87
1 files changed, 0 insertions, 87 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
deleted file mode 100644
index 7e93cc7..0000000
--- a/Jenkinsfile
+++ /dev/null
@@ -1,87 +0,0 @@
-@Library('forge-shared-library')_
-
-pipeline {
- agent {
- docker {
- image 'gradle:jdk8'
- args '-v gradlecache:/gradlecache'
- }
- }
- environment {
- GRADLE_ARGS = '-Dorg.gradle.daemon.idletimeout=5000'
- DISCORD_WEBHOOK = credentials('forge-discord-jenkins-webhook')
- DISCORD_PREFIX = "Job: Artifactural Branch: ${BRANCH_NAME} Build: #${BUILD_NUMBER}"
- JENKINS_HEAD = 'https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png'
- }
-
- stages {
- stage('fetch') {
- steps {
- checkout scm
- }
- }
- stage('notify_start') {
- when {
- not {
- changeRequest()
- }
- }
- steps {
- discordSend(
- title: "${DISCORD_PREFIX} Started",
- successful: true,
- result: 'ABORTED', //White border
- thumbnail: JENKINS_HEAD,
- webhookURL: DISCORD_WEBHOOK
- )
- }
- }
- stage('buildandtest') {
- steps {
- withGradle {
- sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test'
- }
- script {
- env.MYGROUP = sh(returnStdout: true, script: './gradlew properties -q | grep "group:" | awk \'{print $2}\'').trim()
- env.MYARTIFACT = sh(returnStdout: true, script: './gradlew properties -q | grep "name:" | awk \'{print $2}\'').trim()
- env.MYVERSION = sh(returnStdout: true, script: './gradlew properties -q | grep "version:" | awk \'{print $2}\'').trim()
- }
- }
- }
- stage('publish') {
- when {
- not {
- changeRequest()
- }
- }
- steps {
- withCredentials([usernamePassword(credentialsId: 'maven-forge-user', usernameVariable: 'MAVEN_USER', passwordVariable: 'MAVEN_PASSWORD')]) {
- withGradle {
- sh './gradlew ${GRADLE_ARGS} publish'
- }
- }
- }
- post {
- success {
- build job: 'filegenerator', parameters: [string(name: 'COMMAND', value: "promote ${env.MYGROUP}:${env.MYARTIFACT} ${env.MYVERSION} latest")], propagate: false, wait: false
- }
- }
- }
- }
- post {
- always {
- script {
- if (env.CHANGE_ID == null) { // This is unset for non-PRs
- discordSend(
- title: "${DISCORD_PREFIX} Finished ${currentBuild.currentResult}",
- description: '```\n' + getChanges(currentBuild) + '\n```',
- successful: currentBuild.resultIsBetterOrEqualTo("SUCCESS"),
- result: currentBuild.currentResult,
- thumbnail: JENKINS_HEAD,
- webhookURL: DISCORD_WEBHOOK
- )
- }
- }
- }
- }
-}