Commit d79785b9 authored by René Schöne's avatar René Schöne
Browse files

cleanup build and allow publish also on dev.

parent 3886c0f7
Pipeline #10956 failed with stages
in 10 minutes and 36 seconds
......@@ -52,6 +52,7 @@ publish:
script:
- "./gradlew publish"
only:
- dev
- master
ragdoc_build:
......@@ -81,6 +82,9 @@ ragdoc_view:
- OUTPUT_DIR=$(pwd -P)/pages/docs/ragdoc
- cd /ragdoc-view/src/ && rm -rf data && ln -s $DATA_DIR
- /ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
only:
- dev
- master
artifacts:
paths:
- "pages/docs/ragdoc"
......
......@@ -34,11 +34,11 @@ dependencies {
}
def versionFile = 'src/main/resources/ragConnectVersion.properties'
def oldProps = new Properties()
def props = new Properties()
try {
file(versionFile).withInputStream { stream -> oldProps.load(stream) }
version = oldProps['version']
file(versionFile).withInputStream { stream -> props.load(stream) }
version = props['version']
} catch (e) {
// this happens, if either the properties file is not present, or cannot be read from
throw new GradleException("File ${versionFile} not found or unreadable. Aborting.", e)
......@@ -52,9 +52,9 @@ task printVersion() {
task newVersion() {
doFirst {
def props = new Properties()
props['version'] = value
props.store(file(versionFile).newWriter(), null)
def newProps = new Properties()
newProps['version'] = value
newProps.store(file(versionFile).newWriter(), null)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment