-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix: When configured using a pipeline, handle null filterable #85
Conversation
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.
Thanks for working on this @rahulsom ! I saw some discussion on the issues, but I am not able to follow that at the moment.
Build is failing, but the code/tests look good to me. Once the build is green I can merge/cut a release.
Thanks!
When using pipelines, people tend to skip `filterable` as a parameter. That causes `filterable` to be set to `null`. Stapler would emit an empty string. The prior behavior used javascript truthiness and treated it as `false`. Since moving almost all javascript into separate files, the new behavior causes an empty string to be printed during the method call. This change guarantees we emit a primitive `boolean` instead of a boxed `Boolean`. Refs: JENKINS-71724
It's failing to checkout - I've started a discussion - https://groups.google.com/g/jenkinsci-dev/c/JlSMkucHulo |
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.
🎉
Shall we merge and release this, @rahulsom ? |
Yep. We're good to release this. Thanks! |
Release started, then stopped. All tests worked, Maven build was going fine, then Jenkins maven repo rejected my credentials. No changes on my side since last release a few weeks ago (as I'm working more on Python nowadays). Checked Maven security settings and they look good. Logged out, then logged in again in JIRA, all good. But https://repo.jenkins-ci.org/ui/login/ rejects my credentials. Tried to recover password, and it says my user either doesn't exist or is locked. One of the reasons I stopped contributing to Jenkins projects & plugins was the amount of things needed to stay atop of the moving parts, and the time spent troubleshooting issues like this (). I have a full day with things I will have to deliver at $work, then a medical appointment at evening. Ditto for tomorrow. Will try the |
I understand how frustrating things like that are @kinow . Many hours of my life have been spent battling stupid security issues. I hope maven is good to you soon! I have tried the link on JFrog and it seemed to work with my Jenkins JIRA credentials. |
Can someone from jenkins core team help with the issue? @oleg-nenashev @jglick? |
(or switch to https://www.jenkins.io/doc/developer/publishing/releasing-cd/ in which case you never need to bother with personal Artifactory credentials again) |
@kinow Nothing has been released to include this fix as of now, correct? |
That's correct @eplodn. After my last message I tried to perform the last step of the release process one last time, and the account was probably still locked or something (last time I used the credentials was for the previous release 🤷 ). I'm busy with last minute deliveries at $work before going to visit family. I'll be back by October, and then once I find spare time I will try the jenkins-infra/helpdesk issues or switching as Jesse suggested. If the issue or switch do not take too long, a new release should be out somewhere in October. Sorry. |
Released in 2.7.2. |
I had saved it to read later, and I had completely missed any news about this release process. It looks a lot simpler, but then I have to remember to use a separate branch and follow all those steps. What did help me, though, was the link in that page to the docs to release manuallly. There was a I executed that command, updated my |
Sorry, what do you mean by a separate branch? Maybe there is something that needs to be clarified in the docs. |
Hi @jglick , maybe I misunderstood this part
I thought it was suggesting to use something like |
No no, not at all. The “dedicated branch” refers to setting up the plugin for CD, one time. This is just saying that when following the instructions in the guide, rather than pushing all those changes straight to |
Aaahh! That doesn't sound too bad! I might try that in one of the next releases (and if that works will move other plugins to CD too). Thanks for clarifying @jglick ! |
When using pipelines, people tend to skip
filterable
as a parameter. That causesfilterable
to be set tonull
. Stapler would emit an empty string.The prior behavior used javascript truthiness and treated it as
false
.Since moving almost all javascript into separate files, the new behavior causes an empty string to be printed during the method call.
This change guarantees we emit a primitive
boolean
instead of a boxedBoolean
.Refs: JENKINS-71724
Testing done
Added new tests.
Existing tests pass.
Submitter checklist