From 9554921c2ea68d43d64b9cb1b725c48be31c4f2c Mon Sep 17 00:00:00 2001 From: Carlos Zoido Date: Fri, 24 Feb 2023 07:30:02 +0100 Subject: [PATCH] fix (#3022) --- .ci/publish.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/publish.jenkins b/.ci/publish.jenkins index c870bd0e33d8..fff1ef09e535 100644 --- a/.ci/publish.jenkins +++ b/.ci/publish.jenkins @@ -94,7 +94,7 @@ def entry_point = """\ node('Linux') { - String prefix = 'https://docs.conan.io/' //params.prefix ?: "${BUILD_URL}artifact/gh-pages/" + String prefix = 'https://docs.conan.io' //params.prefix ?: "${BUILD_URL}artifact/gh-pages/" stage('Check params') { echo """ @@ -212,9 +212,9 @@ node('Linux') { sh "cp -R ${latest_v2_version} ${latest_v2_folder}" // sh 'cp src/versions.json versions.json' // TODO: File is not used, remove from 'gh-pages' branch - sh "cp ${latest_v1_folder}/404.html 404.html" + sh "cp ${latest_v2_folder}/404.html 404.html" String content = readFile('404.html') - String prefixLatest = "${prefix}/${latest_v1_folder}" + String prefixLatest = "${prefix}/${latest_v2_folder}" content = content.replaceAll('href="_', "href=\"${prefixLatest}/_") content = content.replaceAll('src="_', "src=\"${prefixLatest}/_") content = content.replaceAll('alt="_', "alt=\"${prefixLatest}/_")