Skip to content

Instantly share code, notes, and snippets.

@JaldertVicarious
Created February 2, 2022 10:25
Show Gist options
  • Save JaldertVicarious/e8294a9107049655f1a40756c040d8bd to your computer and use it in GitHub Desktop.
Save JaldertVicarious/e8294a9107049655f1a40756c040d8bd to your computer and use it in GitHub Desktop.
Bookmarklet to open Jenkins console for real-world PR
// To install, make a bookmark and add the code below as the URL
// This only works when you are browing a real_world PR
// e.g. https://github.com/vicariousinc/real_world/pull/18545
javascript:(function() {
const url = window.location.href;
let re = /pull\/(?<PR>[0-9]+)/;
let match = url.match(re);
const pr_id = match.groups["PR"];
open('https://jenkins.corp.vicarious.com/job/vcrs/job/real_world/job/PR-' + pr_id).focus();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment