Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27091

No longer compiles (since Jenkins Core 1.561)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: claim-plugin
    • Labels:
      None
    • Environment:
      Jenkins core version 1.561 and above
      Oracle Java 1.6.0_65
      Maven 3.2.1
    • Similar Issues:

      Description

      Hi and thanks for your work on the Claim Plugin - it's very useful and has been working nicely with my Build Monitor Plugin... until recently.

      It seems like Jenkins Core has moved some packages around, which caused compilation errors in the Claim Plugin.

      What I've noticed (using Oracle Java 1.6.0_65 and Maven 3.2.1) is the following:

      • Claim Plugin compiles correctly with Jenkins Core up to 1.560
      • as of Jenkins Core 1.561, executing mvn clean compile on the Claim Plugin results with:
        {{
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project claim: Compilation failure: Compilation failure:
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[6,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[7,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[6,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[7,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[41,52] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[42,24] cannot find symbol
        [ERROR] symbol : class MatrixBuild
        [ERROR] location: class hudson.plugins.claim.ClaimColumn
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[42,64] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[44,29] cannot find symbol
        [ERROR] symbol : class MatrixRun
        [ERROR] location: class hudson.plugins.claim.ClaimColumn
        }}
      • as of Jenkins Core 1.577 however, executing mvn clean compile on the Claim Plugin results with a more drastic compilation error:
        {{
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project claim: Compilation failure: Compilation failure:
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/DescribableTestAction.java:[8,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/DescribableTestAction.java:[17,52] cannot find symbol
        [ERROR] symbol: class TestAction
        [ERROR] public abstract class DescribableTestAction extends TestAction implements Describable<DescribableTestAction> {
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[9,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[10,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[11,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[12,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[13,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[14,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[24,44] cannot find symbol
        [ERROR] symbol: class TestDataPublisher
        [ERROR] public class ClaimTestDataPublisher extends TestDataPublisher {
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[31,36] cannot find symbol
        [ERROR] symbol : class TestResult
        [ERROR] location: class hudson.plugins.claim.ClaimTestDataPublisher
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[51,53] package TestResultAction does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[66,46] cannot find symbol
        [ERROR] symbol : class TestObject
        [ERROR] location: class hudson.plugins.claim.ClaimTestDataPublisher.Data
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[66,20] cannot find symbol
        [ERROR] symbol : class TestAction
        [ERROR] location: class hudson.plugins.claim.ClaimTestDataPublisher.Data
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[102,58] cannot find symbol
        [ERROR] symbol : class TestDataPublisher
        [ERROR] location: class hudson.plugins.claim.ClaimTestDataPublisher
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[6,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimColumn.java:[7,20] package hudson.matrix does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/DescribableTestAction.java:[8,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/DescribableTestAction.java:[17,52] cannot find symbol
        [ERROR] symbol: class TestAction
        [ERROR] public abstract class DescribableTestAction extends TestAction implements Describable<DescribableTestAction> {
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[9,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[10,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[11,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[12,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[13,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[14,25] package hudson.tasks.junit does not exist
        [ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java:[24,44] cannot find symbol
        [ERROR] symbol: class TestDataPublisher
        [ERROR] public class ClaimTestDataPublisher extends TestDataPublisher
        Unknown macro: {[ERROR] /.../claim-plugin/src/main/java/hudson/plugins/claim/ClaimTestDataPublisher.java}

      Because of the above issues, I'm also getting compilation errors when trying to compile Build Monitor with new Jenkins Cores (I tested with "stable" 1.580.3 and above):

      {{
      [ERROR] /.../build-monitor/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/viewmodel/plugins/BuildAugmentor.java:[59,44] cannot access hudson.tasks.junit.TestAction
      [ERROR] class file for hudson.tasks.junit.TestAction not found
      [ERROR] /.../build-monitor/src/main/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/viewmodel/plugins/BuildAugmentor.java:[61,24] operator != cannot be applied to hudson.plugins.claim.ClaimBuildAction,<nulltype>
      }}

      Looking forward to hearing from you!
      Please let me know if I can be of any further help.

      Kind regards,
      Jan

      PS. JENKINS-23263 seems like it might be related to the issue I described

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ki82
          Path:
          pom.xml
          http://jenkins-ci.org/commit/claim-plugin/a69fbfd5d2644a44d101c66082803ff20cbc933d
          Log:
          Merge pull request #16 from jan-molak/master

          JENKINS-27091 Compatibility with Jenkins core 1.577 and newer

          Compare: https://github.com/jenkinsci/claim-plugin/compare/e120f9c38ac2...a69fbfd5d264

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ki82 Path: pom.xml http://jenkins-ci.org/commit/claim-plugin/a69fbfd5d2644a44d101c66082803ff20cbc933d Log: Merge pull request #16 from jan-molak/master JENKINS-27091 Compatibility with Jenkins core 1.577 and newer Compare: https://github.com/jenkinsci/claim-plugin/compare/e120f9c38ac2...a69fbfd5d264
          Hide
          ki82 Christian Bremer added a comment -

          Released in 2.7

          Show
          ki82 Christian Bremer added a comment - Released in 2.7

            People

            • Assignee:
              ki82 Christian Bremer
              Reporter:
              janek Jan Molak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: