Skip to content

Instantly share code, notes, and snippets.

@neowinx
Created April 12, 2019 19:26
Show Gist options
  • Save neowinx/41b8aca77f14a6a729a24a75c5c5bac2 to your computer and use it in GitHub Desktop.
Save neowinx/41b8aca77f14a6a729a24a75c5c5bac2 to your computer and use it in GitHub Desktop.
Jenkins automated password recovery
#!/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