Jenkins Decrypt Passwords in Plain text

 Go to Manage Jenkins > Script Console


add this code 

-----------------------------------------------------------------------------------------------------------------------------

com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance().getCredentials().forEach{

  it.properties.each { prop, val ->

    if (prop == "secretBytes") {

      println(prop + "=>\n" + new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("${val}").getPlainData()) + "\n")

    } else {

      println(prop + ' = "' + val + '"')

    }

  }

  println("-----------------------")

}

-----------------------------------------------------------------------------------------------------------------------------

Click on run

Comments

Popular posts from this blog

Problem Resizing Filesystem: "resize2fs: Permission denied to resize filesystem" During Online Resize

Nginx Ciphers

DevOps Culture