I can confirm that PRIVATE_KEY_BASE64 is indeed set as env variable before I run
java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -auth admin:admin reload-jcasc-configuration
Expected Results
Password should be injected into jenkins credentials
Jenkins and plugins versions report
Environment
```text prod ```What Operating System are you using (both controller, and any agents involved in the problem)?
Linux
Reproduction steps
I'm trying to inject base64 encoded ssh private key from env variables into jenkins credentials store using casc plugins. Inline my casc config.
I can confirm that PRIVATE_KEY_BASE64 is indeed set as env variable before I run java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -auth admin:admin reload-jcasc-configuration
Expected Results
Password should be injected into jenkins credentials
Actual Results
Anything else?
I tried readFileBase64, which is able to read from file and inject into jenkins credentials store. I have also tried exact same config provided in https://github.com/jenkinsci/configuration-as-code-plugin/blob/de7cffe5cb4b1bde9a55ae7cd32acb183f5d6ba4/integrations/src/test/resources/io/jenkins/plugins/casc/SSHCredentialsTest_Singleline_Key.yml and that also not working