From 7ac808daad81074406f3f835952d78591661567e Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 8 Feb 2017 11:04:30 +0100 Subject: [PATCH] [web] Canonify Urls on Jenkins. --- scripts/cmake/Web.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/cmake/Web.cmake b/scripts/cmake/Web.cmake index 35af7653e7e..6800e93d474 100644 --- a/scripts/cmake/Web.cmake +++ b/scripts/cmake/Web.cmake @@ -25,6 +25,10 @@ if(DEFINED OGS_WEB_BASE_URL) set(HUGO_ARGS --baseURL ${OGS_WEB_BASE_URL}) endif() +if(DEFINED ENV{JENKINS_URL}) + set(HUGO_ARGS ${HUGO_ARGS} --canonifyURLs) +endif() + add_custom_target(web COMMAND ${NPM} run build -- ${HUGO_ARGS} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/web -- GitLab