diff --git a/Jenkinsfile b/Jenkinsfile index e6f06f3d5..c0cad7b15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,7 @@ pipeline { } } steps { - writeChangelog(currentBuild, 'build/BiomesOPlenty-${MYVERSION}-changelog.txt') + writeChangelog(currentBuild, 'build/BiomesOPlenty-${env.MYVERSION}-changelog.txt') } } stage('publish') { diff --git a/build.gradle b/build.gradle index b651dcffb..7a4669439 100644 --- a/build.gradle +++ b/build.gradle @@ -84,22 +84,28 @@ task apiJar(type: Jar) { classifier = 'api' } +def changelog_file = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt') + curseforge { if (project.hasProperty('curseApiKey')) { apiKey = project.getProperty('curseApiKey') project { id = '220318' - changelog = file('build/changelog.txt') + + if (changelog.exists()) { + changelog = changelog_file + } + releaseType = 'beta' } } } -def changelog = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt') + artifacts { - if (changelog.exists()) { - archives changelog + if (changelog_file.exists()) { + archives changelog_file } archives sourcesJar archives deobfJar