Skip to content

jenkins ruleset doesn't work when using Java 21 #782

@nre-ableton

Description

@nre-ableton

When I try using the new jenkins ruleset introduced in CodeNarc 3.5.0 with Java 21, I get an error:

ERROR: org.codenarc.analyzer.AnalyzerException: Error analyzing source file: Jenkinsfile; BUG! exception in phase 'semantic analysis' in source unit 'None' Unsupported class file major version 65
org.codenarc.analyzer.AnalyzerException: Error analyzing source file: Jenkinsfile; BUG! exception in phase 'semantic analysis' in source unit 'None' Unsupported class file major version 65

The ruleset works fine when using Java 17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions