-
Notifications
You must be signed in to change notification settings - Fork 124
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
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 |
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.
Is this significant enough to need a core dependency with jenkinsci/jenkins#9150, or can we tolerate this not working with older cores?
WorkflowJob/configure-entries.jelly
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.
Retested manually against 2.477.x |
</properties> | ||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>io.jenkins.tools.bom</groupId> | ||
<artifactId>bom-2.452.x</artifactId> | ||
<version>3023.v02a_987a_b_3ff9</version> | ||
<artifactId>bom-2.462.x</artifactId> |
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.
Is a bom-2.477.x
in preparation?
<scope>import</scope> | ||
<type>pom</type> | ||
</dependency> | ||
<!-- TODO JENKINS-73339 until in parent POM, work around https://github.com/jenkinsci/plugin-pom/issues/936 --> |
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.
pending jenkinsci/plugin-pom#1004 (comment) IIUC
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