-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add display_name
support to jenkins_folder
resource
#53
Conversation
An optional `display_name` argument can now be set so that you can specify a custom name to display in the Jenkins UI for the folder.
@taiidani The errors in the acceptance tests are down to the Terraform version being used which is generating a Terraform state file of a higher version.
So locally, I switched to Terraform 0.14.11 and all tests pass.
|
@taiidani Looks like we may need to bump |
Codecov Report
@@ Coverage Diff @@
## main #53 +/- ##
===========================================
+ Coverage 53.29% 81.39% +28.10%
===========================================
Files 17 17
Lines 1244 1258 +14
===========================================
+ Hits 663 1024 +361
+ Misses 577 184 -393
- Partials 4 50 +46
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks for your contribution! You were correct about the Dependabot PR needing to be merged, the tests are passing now. During my own testing though I found a problem where the lack of a We probably want to default to Tested by: make
cd example/
docker-compose up -d
terraform init && terraform apply
open http://localhost:8080 |
If it's not set, then we omit it from the XML payload we generate and submit to the Jenkins API, and Jenkins defaults to using `name`. And added an additional test case so we cover both setting and not setting `display_name`.
Thanks for catching that! I've pushed up a fix and added an additional test case, so we, well I can't get caught out by this again 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Dependencies
N/A
What Is Changing
An optional
display_name
argument can now be set so that you can specify a custom name to display in the Jenkins UI for the folder.Test Steps
docs/
folder to match your change?examples/
docker compose setup?I tested the provider in my local Jenkins setup.
After applying, the change was present in the UI :)
And when viewing the folder config page, I can see both name & display name values matching what I set in my Terraform code earlier.