Skip to content

Commit 24e45af

Browse files
committed
Try to set webpage title
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
1 parent 58c1e9a commit 24e45af

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

jenkins/pipelines/tracecompass-test.Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pipeline {
3636
RCP_PATTERN="trace-compass-*"
3737
JAVADOC_PATH="target/site/apidocs"
3838
GIT_SHA_FILE="tc-git-sha"
39-
DEFAULT_RCP_TITLE="Download Page"
39+
WEBPAGE_TITLE="Download Page"
4040
}
4141
stages {
4242
stage('Checkout') {
@@ -180,12 +180,12 @@ pipeline {
180180
steps {
181181
sshagent (['projects-storage.eclipse.org-bot-ssh']) {
182182
script {
183-
def title = ${RCP_TITLE}
184-
if (!title) {
185-
title = ${DEFAULT_RCP_TITLE}
183+
if (env.RCP_TITLE) {
184+
env.WEBPAGE_TITLE = env.RCP_TITLE
186185
}
187-
generate_download_page(${RCP_DESTINATION}, title)
188186
}
187+
println "${WEBPAGE_TITLE}"
188+
generate_download_page("\${RCP_DESTINATION}", "\${WEBPAGE_TITLE}")
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)