Closed edif2008 closed 2 months ago
Code Review ✅ Code is a simple 1 line change but looks good
Functional Review ✅ Pulled down code and followed testing instructions. Works as expected.
Maybe stupid question, but in Jenkins I only see release 1.0.0 available. When will this fix be released so it can be updated in Jenkins plugin ?
We will release it very soon and we will let you know when the release is out.
Excellent! Thanks very much.
This PR reads the entire secret value from 1Password instead of just the first line of it. This ensures that multiline secrets are properly pulled.
Resolves #10
The fix is changing line 129 in
src/main/java/com/onepassword/jenkins/plugins/OnePasswordAccessor.java
in from:which was only reading the firs line of the secret, to:
which reads all the lines of the secret and preserves the newlines in it.
Testing done
Testing has been done by:
For reviewers
Checkout this branch:
Run the plugin:
Create a new pipeline with the following script:
For addition details about creating Jenkins pipeline using the plugin and configuring the plugin, check the documentation.
Run the pipeline.
Submitter checklist