From 763b3e806eaad78cfca8095d658987de83196d55 Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 15 Nov 2018 14:00:18 -0800 Subject: [PATCH] Add a a test publish stage to jenkins file for PRs. Should allow for full publish cycle test without actually publishing. --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 886cfafd6..ce3cb489e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,6 +56,21 @@ pipeline { sh 'curl --user ${FORGE_MAVEN} http://files.minecraftforge.net/maven/manage/promote/latest/net.minecraftforge.test.forge/${MYVERSION}' } } + stage('test_publish_pr') { //Publish to local repo to test full process, but don't include credentials so it can't sign/publish to maven + when { + changeRequest() + } + environment { + CROWDIN = credentials('forge-crowdin') + } + steps { + cache(maxCacheSize: 250/*MB*/, caches: [ + [$class: 'ArbitraryFileCache', excludes: '', includes: 'output.txt', path: '${WORKSPACE}/projects/forge/build/extractRangeMap/'] //Cache the rangemap to help speed up builds + ]){ + sh './gradlew ${GRADLE_ARGS} :forge:publish -PcrowdinKey=${CROWDIN}' + } + } + } } post { always {