add groovy formating

This commit is contained in:
Morgan 2020-02-13 21:54:55 +01:00 committed by GitHub
parent e4bbc0985f
commit 3371a8e808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,9 @@
Execute in https://*INSTANCE*/script to reveal passwords from a password hash (obtained via Inspect Element on a Credential) 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')` ```groovy
hudson.util.Secret.decrypt('secret_hash')
```
### Jenkins current jobs ### Jenkins current jobs
@ -11,7 +13,7 @@ https://*INSTANCE*/computer/api/json?tree=computer[executors[currentExecutable[*
### Reveal all secrets ### Reveal all secrets
Execute in https://*INSTANCE*/script to reveal all secrets Execute in https://*INSTANCE*/script to reveal all secrets
``` ```groovy
import com.cloudbees.plugins.credentials.CredentialsProvider import com.cloudbees.plugins.credentials.CredentialsProvider
import com.cloudbees.plugins.credentials.Credentials import com.cloudbees.plugins.credentials.Credentials
import com.cloudbees.plugins.credentials.domains.Domain import com.cloudbees.plugins.credentials.domains.Domain