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
[JENKINS-69916] Un-inline WorkflowJob/configure-entries.jelly #411
base: master
Are you sure you want to change the base?
Conversation
You can't depend on jenkinsci/jenkins#8866 because this changes AbstractProject and WorkflowJob is not inheriting from it. So no need to change the jenkins version. You would need to also implement the doCheckDisplayNameOrNull method. Given that we have this now in MatrixProject (open PR jenkinsci/matrix-project-plugin#130), core (the mentioned change), folder plugin (https://github.com/jenkinsci/cloudbees-folder-plugin/blob/233481b4bb4accfe8582ad2f5c922168022af31d/src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolderDescriptor.java#L138) and here maybe we can have an AbstractItemDescriptor interface with a default implementation for that doCheckDisplayNameOrNull and have all 4 places implement that interface |
Hi @mawinter69 I have tried my best to apply the suggesions from your review. But I might have missed some important details though. If that if the case please let me know. Thanks! |
cbb9080
to
df57bc3
Compare
Sorry seems my wording was not precise enough. The thing with the So for now you will need to add this method to the Descriptor of WorkflowJob, not WorkflowJob directly |
So do so in Jenkins core, and set the |
Let me follow up on this shortly |
Hi @mawinter69 @jglick, But if I have made any mistakes, please point these out to me so I can accommodate. Thanks! |
Working on the upstream PR pending review(s): jenkinsci/jenkins#9150 |
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.
With the core change, should be good enough just deleting the checkUrl
?
Should increase the core dependency to the snapshot (and then the release once out).
src/main/java/org/jenkinsci/plugins/workflow/job/AbstractItemDescriptor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
Outdated
Show resolved
Hide resolved
Hi @daniel-beck I have just made the changes as suggested |
Description
Testing done. Tried the functionality which appears intact after the code modifications, except for the original testing steps outlined in https://issues.jenkins.io/browse/JENKINS-69916. The checkURL validation is now completely gone. This work follows the upstream changes in jenkinsci/jenkins#8866, especially the ones in
core/src/main/java/hudson/model/AbstractProject.java
. The only requirement for this patch to work is that we will need the minimum Jenkins version requirement to set at2.443
.JIRA Issue
https://issues.jenkins.io/browse/JENKINS-69916
Relevant Upstream Change(s)
jenkinsci/jenkins#8866
Testing Steps
Similar to the ones described in JIRA ticket, except the
checkDisplayName
validation is gone.c.c. @Kevin-CB
Submitter checklist