This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This Jenkins Groovy script extracts credentials in Jenkins and outputs them | |
// in a JSON format that can be digested by "Jenkins Configuration as Code". | |
// Just pass the output into a JSON to YAML converter. You can run this | |
// through the Jenkins Script Console or similar. | |
// | |
// Thank you: | |
// - https://github.com/tkrzeminski/jenkins-groovy-scripts/blob/master/show-all-credentials.groovy | |
// | |
// To conver to YAML `json2yaml | sed '/^[[:space:]]*$/d'` | |
// |