Skip to content

Instantly share code, notes, and snippets.

bundle agent __main__ {
vars:
"path" string => getenv("PATH", 1024);
"path_folders" slist => splitstring("$(path)", ":", 128);
"exact_versions" slist => maplist("$(this)/python[23]", @(path_folders));
"just_python" slist => maplist("$(this)/python", @(path_folders));
"globs" slist => getvalues(mergedata(@(exact_versions), @(just_python)));
"python[$(globs)]" slist => findfiles("$(globs)");
// ==UserScript==
// @name Jenkins console linker
// @namespace https://cfengine.com
// @version 0.1
// @description Adds images with links to console output for jenkins jobs
// @author Vratislav Podzimek <v.podzimek@mykolab.com>
// @match https://ci.cfengine.com/job/*/*
// @match https://ci.cfengine.com/*/*/job/*/*
// @grant none
// ==/UserScript==