Flesh out the redirect HTML a bit more nicer

This commit is contained in:
R. Tyler Croy 2018-01-03 20:06:09 -08:00
parent 37a63d007c
commit 2ab28fbd70
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def call(Map args) {
if (uploadedUrl =~ /https\:\/\//) {
/* if the output was a URL, generate our redirect file */
String redirectFile = "${args.artifacts}.html"
String redirectHtml = "<html><head><meta http-equiv=\"refresh\" content=\"0;url=${uploadedUrl}\" /></head><body></body></html>"
String redirectHtml = "<html><head><meta http-equiv=\"refresh\" content=\"0;URL=${uploadedUrl}\" /><title>Redirecting...</title></head><body>Redirecting to ${uploadedUrl}</body></html>"
writeFile file: redirectFile, text:redirectHtml
steps.archiveArtifacts redirectFile
}