Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52184

Secrets cannot be read with pipeline utils

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • kubernetes-plugin
    • None
    • Jenkins 2.121.1
      Kubernetes-plugin 1.8.4
      jdk 8

      Hello,

      I use kubernetes secrets to configure my CI containers. I updated updating from 1.5.1 to 1.8.4. Unfortunately fileExists and readYaml form jenkins pipeline utils are not able to read the mounted secrets anymore. I can list the folder /secrets and do a cat on /secrets/mysecret but fileExists /secrets/mysecret => false and readYaml /secrets/mysecret  throws file not found exception.

       

      The only thing I changed is the plugin version. I run on kubernetes 1.10.X

       

      I hope I provided all necessary information (I stripped few things of versions i deem unnecessary)

       

      Regards

            csanchez Carlos Sanchez
            jonashartwig Jonas Hartwig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: