Jenkinsfile updates

This commit is contained in:
Adubbz 2021-04-24 09:49:27 +10:00
parent acd9f9db5b
commit 8caa6a9aa2

9
Jenkinsfile vendored
View file

@ -23,7 +23,9 @@ pipeline {
} }
stage('setup') { stage('setup') {
steps { steps {
sh './gradlew ${GRADLE_ARGS} --refresh-dependencies' withGradle {
sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue setup'
}
script { script {
env.MYVERSION = sh(returnStdout: true, script: './gradlew :properties -q | grep "^version:" | awk \'{print $2}\'').trim() env.MYVERSION = sh(returnStdout: true, script: './gradlew :properties -q | grep "^version:" | awk \'{print $2}\'').trim()
} }
@ -51,7 +53,10 @@ pipeline {
CURSE_API_KEY = credentials('curse-api-key') CURSE_API_KEY = credentials('curse-api-key')
} }
steps { steps {
sh './gradlew ${GRADLE_ARGS} :uploadArchives curseforge -PforgeMavenUsername=${FORGE_MAVEN_USR} -PforgeMavenPassword=${FORGE_MAVEN_PSW} -PcurseApiKey=${CURSE_API_KEY}' withGradle {
sh './gradlew ${GRADLE_ARGS} :uploadArchives curseforge -PforgeMavenUsername=${FORGE_MAVEN_USR} -PforgeMavenPassword=${FORGE_MAVEN_PSW} -PcurseApiKey=${CURSE_API_KEY}'
}
sh 'curl --user ${FORGE_MAVEN_USR}:${FORGE_MAVEN_PSW} http://files.minecraftforge.net/maven/manage/promote/latest/com.github.glitchfiend.biomesoplenty.BiomesOPlenty/${MYVERSION}' sh 'curl --user ${FORGE_MAVEN_USR}:${FORGE_MAVEN_PSW} http://files.minecraftforge.net/maven/manage/promote/latest/com.github.glitchfiend.biomesoplenty.BiomesOPlenty/${MYVERSION}'
} }
} }