Skip to content
Snippets Groups Projects
Commit d80ff3c0 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Fixed benchmark doc base url on master builds.

parent 910c9baa
No related branches found
No related tags found
No related merge requests found
...@@ -35,10 +35,7 @@ pipeline { ...@@ -35,10 +35,7 @@ pipeline {
sudo -H pip install -r requirements.txt sudo -H pip install -r requirements.txt
""".stripIndent()) """.stripIndent())
configure { cmakeOptions = configure { cmakeOptions = '-DOGS_CPU_ARCHITECTURE=generic ' }
'-DOGS_CPU_ARCHITECTURE=generic ' +
'-DOGS_WEB_BASE_URL=$JOB_URL"Web/" ' // TODO: or '-DOGS_WEB_BASE_URL=https://dev.opengeosys.org'
}
build { } build { }
build { target="tests" } build { target="tests" }
build { target="ctest" } build { target="ctest" }
......
...@@ -42,7 +42,12 @@ if(DEFINED OGS_WEB_BASE_URL) ...@@ -42,7 +42,12 @@ if(DEFINED OGS_WEB_BASE_URL)
endif() endif()
if(DEFINED ENV{JENKINS_URL}) if(DEFINED ENV{JENKINS_URL})
set(HUGO_ARGS ${HUGO_ARGS} --canonifyURLs) if($ENV{JOB_NAME} STREQUAL "ufz/ogs/master")
set(HUGO_BASE_URL "https://benchmarks.opengeosys.org")
else()
set(HUGO_BASE_URL "$ENV{JOB_URL}Web/")
endif()
set(HUGO_ARGS ${HUGO_ARGS} --baseURL ${HUGO_BASE_URL} --canonifyURLs)
endif() endif()
add_custom_target(web add_custom_target(web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment