Account for missing changelog for curse

This commit is contained in:
Adubbz 2019-05-04 17:37:42 +10:00
parent 35aeb8afdb
commit 48a05fb3fe
2 changed files with 11 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline {
}
}
steps {
writeChangelog(currentBuild, 'build/BiomesOPlenty-${MYVERSION}-changelog.txt')
writeChangelog(currentBuild, 'build/BiomesOPlenty-${env.MYVERSION}-changelog.txt')
}
}
stage('publish') {

View File

@ -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