Skip to content

Instantly share code, notes, and snippets.

@geapi
Last active April 1, 2016 21:44
Show Gist options
  • Save geapi/6811acce5e4f7c51b502 to your computer and use it in GitHub Desktop.
Save geapi/6811acce5e4f7c51b502 to your computer and use it in GitHub Desktop.
Bookmarklet to show only the pipelines on your goCD dashboard/home that you decide to be there
/*
This snippet first unselects all pipelines and then adds the specified ones back.
USAGE:
replace YOUR_PIPELINE_NAME with actual value
in your browser create a bookmark to any URL
edit the bookmark, replacing the URL with snippet build from the below template
voila: when you are on the goCD dashboard; click it and all pipelines except yours should disappear
*/
// Template
javascript: (function() {
jQuery("#show_pipelines_selector").click();
jQuery("#select_no_pipelines").click();
jQuery("#selector_group_YOUR_PIPELINE_NAME input").click();
jQuery("#selector_group_YOUR_OTHER_PIPELINE_NAME input").click();
jQuery("#apply_pipelines_selector").click();
})();
// example from LAMB pipelines
javascript: (function() {
jQuery("#show_pipelines_selector").click();
jQuery("#select_no_pipelines").click();
jQuery("#selector_group_LAMB input").click();
jQuery("#selector_group_LAMB-PCF input").click();
jQuery("#apply_pipelines_selector").click();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment