Skip to content

Commit 20b95eb

Browse files
committed
Another try to set webpage title
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
1 parent 24e45af commit 20b95eb

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

jenkins/pipelines/tracecompass-test.Jenkinsfile

Lines changed: 3 additions & 8 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-
WEBPAGE_TITLE="Download Page"
39+
WEBPAGE_TITLE = "${params.RCP_TITLE == null || params.RCP_TITLE.isEmpty() ? "Download Page" : params.RCP_TITLE}"
4040
}
4141
stages {
4242
stage('Checkout') {
@@ -179,13 +179,8 @@ pipeline {
179179
}
180180
steps {
181181
sshagent (['projects-storage.eclipse.org-bot-ssh']) {
182-
script {
183-
if (env.RCP_TITLE) {
184-
env.WEBPAGE_TITLE = env.RCP_TITLE
185-
}
186-
}
187182
println "${WEBPAGE_TITLE}"
188-
generate_download_page("\${RCP_DESTINATION}", "\${WEBPAGE_TITLE}")
183+
generate_download_page("${RCP_DESTINATION}", "${WEBPAGE_TITLE}")
189184
}
190185
}
191186
}
@@ -218,7 +213,7 @@ def generate_download_page(String destFolder, String title) {
218213
SSHUSER="genie.tracecompass@projects-storage.eclipse.org"
219214
SCP="scp"
220215
\${WORKSPACE_SCRIPTS}generate_download_page.sh '${destFolder}' '${title}' > index.html
221-
\${SCP} index.html "\${SSHUSER}:\${destFolder}"
216+
\${SCP} index.html '${SSHUSER}:${destFolder}'
222217
rm index.html
223218
"""
224219
}

0 commit comments

Comments
 (0)