Account for missing changelog for curse
This commit is contained in:
parent
35aeb8afdb
commit
48a05fb3fe
2 changed files with 11 additions and 5 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -36,7 +36,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
writeChangelog(currentBuild, 'build/BiomesOPlenty-${MYVERSION}-changelog.txt')
|
writeChangelog(currentBuild, 'build/BiomesOPlenty-${env.MYVERSION}-changelog.txt')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('publish') {
|
stage('publish') {
|
||||||
|
|
14
build.gradle
14
build.gradle
|
@ -84,22 +84,28 @@ task apiJar(type: Jar) {
|
||||||
classifier = 'api'
|
classifier = 'api'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def changelog_file = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt')
|
||||||
|
|
||||||
curseforge {
|
curseforge {
|
||||||
if (project.hasProperty('curseApiKey')) {
|
if (project.hasProperty('curseApiKey')) {
|
||||||
apiKey = project.getProperty('curseApiKey')
|
apiKey = project.getProperty('curseApiKey')
|
||||||
project {
|
project {
|
||||||
id = '220318'
|
id = '220318'
|
||||||
changelog = file('build/changelog.txt')
|
|
||||||
|
if (changelog.exists()) {
|
||||||
|
changelog = changelog_file
|
||||||
|
}
|
||||||
|
|
||||||
releaseType = 'beta'
|
releaseType = 'beta'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def changelog = rootProject.file('build/BiomesOPlenty-${version}-changelog.txt')
|
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
if (changelog.exists()) {
|
if (changelog_file.exists()) {
|
||||||
archives changelog
|
archives changelog_file
|
||||||
}
|
}
|
||||||
archives sourcesJar
|
archives sourcesJar
|
||||||
archives deobfJar
|
archives deobfJar
|
||||||
|
|
Loading…
Reference in a new issue