I don't know which hasClassName is undefined as your linking to a local
file, and
https://github.com/jenkinsci/jenkins/blob/master/war/src/main/webapp/scripts/hudson-behavior.js#L1382
doesn't have that function being called.

As a side note, its probably to run `s/Element.hasClassName\((\w+)
,/$1.classList.contains/g` on that file and get rid of a bit more prototype

Gavin

On Wed, Nov 25, 2020 at 9:19 PM Mark Waite <[email protected]>
wrote:

> I'm trying to update the git plugin from requiring Jenkins 2.204.1 to
> Jenkins 2.222.x or newer.  The git plugin includes config round trip
> tests.  Those tests fail with a message:
>
> Cannot call method "hasClassName" of undefined (
> http://localhost:45517/jenkins/static/ddaf3eae/scripts/hudson-behavior.js#1382
> )
>
> The failure line matches a line in the hudson-behavior.js file for that
> Jenkins core version.
>
> A minimal example of the failure can be seen in
> https://ci.jenkins.io/job/Plugins/job/git-plugin/view/change-requests/job/PR-1005/2/testReport/
> and will also be visible in
> https://ci.jenkins.io/job/Plugins/job/git-plugin/view/change-requests/job/PR-1005/3/testReport/
>
> The second set of failures adds an example that does not use any git
> plugin features.  Source code for the failing test is available at
> https://github.com/jenkinsci/git-plugin/pull/1005/files
>
> Suggestions for the changes I should make so that the config round trip
> tests will run as expected?
>
> Thanks
> Mark Waite
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/46135ec9-8934-4daf-85b9-909d9e3b8305n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/46135ec9-8934-4daf-85b9-909d9e3b8305n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DusABYiCEhxsV%2Bg653Qg8TYLicQ0v%3DE6hpwOSuxVRuxAUQ%40mail.gmail.com.

Reply via email to