Skip to content

Commit 86c16b0

Browse files
committed
Another try to set webpage title
Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 24e45af commit 86c16b0

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

jenkins/pipelines/tracecompass-test.Jenkinsfile

Lines changed: 3 additions & 10 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
}
@@ -215,10 +210,8 @@ Check console output at $BUILD_URL to view the results.''',
215210

216211
def generate_download_page(String destFolder, String title) {
217212
sh """
218-
219-
SCP="scp"
220213
\${WORKSPACE_SCRIPTS}generate_download_page.sh '${destFolder}' '${title}' > index.html
221-
\${SCP} index.html "\${SSHUSER}:\${destFolder}"
214+
scp index.html '[email protected]:${destFolder}'
222215
rm index.html
223216
"""
224217
}

0 commit comments

Comments
 (0)