Skip to content

Commit 9cfd6f1

Browse files
authored
Merge pull request #99 from ISISComputingGroup/rerpha-patch-1
make jenkins job on wall display go to last build
2 parents eef587e + 5c2727b commit 9cfd6f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/JenkinsJobs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default function JenkinsJobs() {
4141
const jobs: Array<IfcWallDisplayJob> = resData["jobs"].filter(
4242
(job) => job["color"] != "disabled",
4343
);
44+
console.log(jobs);
4445
setData(jobs);
4546
}
4647
fetchPosts();
@@ -71,7 +72,7 @@ export default function JenkinsJobs() {
7172
{data.map((job) => (
7273
<a
7374
key={job["name"]}
74-
href={job["url"] + "#:~:text=Builds"} // link to text fragment for "builds"
75+
href={job["url"] + "lastCompletedBuild"} // link to text fragment for "builds"
7576
className={
7677
"text-black h-10 font-bold text-xl capitalize rounded-lg text-center border-2 border-black hover:border-white " +
7778
jenkinsColourToWebDashColour.get(job["color"]) +

0 commit comments

Comments
 (0)