Created
April 12, 2019 19:26
-
-
Save neowinx/41b8aca77f14a6a729a24a75c5c5bac2 to your computer and use it in GitHub Desktop.
Jenkins automated password recovery
This file contains hidden or 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
#!/bin/bash | |
oc login -u system:admin | |
oc exec `oc get --all-namespaces pods | grep Running | awk '{print $2}'` cat /var/jenkins_home/secrets/initialAdminPassword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment