Fix: Add S3 URL in href to ship logs 44/70444/4 master
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 7 Aug 2022 23:50:23 +0000 (09:50 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 8 Aug 2022 22:08:21 +0000 (08:08 +1000)
The href must be set correctly for the description
setting plugin to work with AWS S3.

Issue-ID: RELENG-4354
Change-Id: Ia388fd7de37cef4db0d43de057d2bab914eec2b6
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-s3-URL-desc-setter-ca99d85d3d860cc5.yaml [new file with mode: 0644]
vars/lfInfraShipLogs.groovy

diff --git a/releasenotes/notes/fix-s3-URL-desc-setter-ca99d85d3d860cc5.yaml b/releasenotes/notes/fix-s3-URL-desc-setter-ca99d85d3d860cc5.yaml
new file mode 100644 (file)
index 0000000..b1b7be7
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Add S3 URL in href as required to display the AWS S3 logs
+    from the jobs description.
index f9b237e..67876f0 100644 (file)
@@ -74,7 +74,7 @@ def call(body) {
                     sh(script: libraryResource('shell/logs-deploy.sh'))
                 }
                 s3_path = "logs/${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}/"
-                buildDesc += "S3 build logs: <a href=\"https://$CDN_URL/$s3_path\"></a>\n"
+                buildDesc += "S3 build logs: <a href=\"https://$CDN_URL/$s3_path\">https://$CDN_URL/$s3_path</a>\n"
                 // If LOGS_SERVER is also defined, logs-deploy.sh will deploy to both
                 if ("$LOGS_SERVER" != "") {
                     nexus_path = "${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"