From fa106e698d91af7ce0bbfe681383fdfe84c2cd74 Mon Sep 17 00:00:00 2001 From: Morgan Date: Fri, 9 Aug 2019 04:56:44 +0200 Subject: [PATCH] jenkins cheatsheet --- cheat/jenkins.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cheat/jenkins.md diff --git a/cheat/jenkins.md b/cheat/jenkins.md new file mode 100644 index 0000000..73a35be --- /dev/null +++ b/cheat/jenkins.md @@ -0,0 +1,9 @@ +### Reveal passwords + +Execute in https://*INSTANCE*/script to reveal passwords from a password hash (obtained via Inspect Element on a Credential) + +`hudson.util.Secret.decrypt('secret_hash')` + +### Jenkins current jobs + +https://*INSTANCE*/computer/api/json?tree=computer[executors[currentExecutable[*]]]