adoptium / aqa-test-tools

Home of Test Results Summary Service (TRSS) and PerfNext. These tools are designed to improve our ability to monitor and triage tests at the Adoptium project. The code is generic enough that it is extensible for use by any project that needs to monitor multiple CI servers and aggregate their results.
Apache License 2.0
28 stars 81 forks source link

Set TRSS link in the Jenkins job #796

Open llxia opened 1 year ago

llxia commented 1 year ago

TRSS monitors Jenkins's job. It would be nice if there was a link from the Jenkins build (top-level) to TRSS (both Build view and Grid view). It will make it more user-friendly to find a build in TRSS.

llxia commented 1 year ago

https://stackoverflow.com/questions/25427622/changing-jenkins-build-name-description-through-api-in-java may be helpful.

llxia commented 1 year ago

Another way of doing this is to add a general link in the job description from the Jenkins pipeline (i.e., For openjdk17-pipeline build, points to https://trss.adoptium.net/builds?buildName=openjdk17-pipeline&url=https%3A%2F%2Fci.adoptium.net%2Fjob%2Fbuild-scripts&type=Test). In this way, TRSS does not need to have permission to update the Jenkins job description.

https://plugins.jenkins.io/sidebar-link/ may be used for adding the link. https://stackoverflow.com/questions/62717135/how-can-i-use-jenkins-sidebar-link-plugin-in-pipeline-step