CarryOn/Jenkinsfile
2024-07-09 23:50:54 +02:00

34 lines
921 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent any
tools {
jdk "jdk-21"
}
stages {
stage('Clean') {
steps {
withCredentials([file(credentialsId: 'mod_build_secrets', variable: 'ORG_GRADLE_PROJECT_secretFile')]) {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
}
stage('Build') {
steps {
withCredentials([file(credentialsId: 'mod_build_secrets', variable: 'ORG_GRADLE_PROJECT_secretFile')]) {
echo 'Building'
sh './gradlew build publish'
}
}
}
}
post {
always {
archive 'Forge/build/libs/**.jar'
archive 'Fabric/build/libs/**.jar'
archive 'NeoForge/build/libs/**.jar'
}
}
}