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

Deprecated code error with messages.class on private plugin

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Not A Defect
    • Icon: Major Major
    • _unsorted
    • None

      we have the build parameters plugin built successfully on 2.62 jenkins version with java 8, but building it with java 11 on jenkins 2.361.4 is throwing error for messages.class from hudson triggers. Can anyone please help how to address this erros and to build the plugin.

      [INFO] — maven-compiler-plugin:3.10.1:compile (default-compile) @ buildparameters —
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 33 source files to C:\Users\bonthu.sirisha\OneDrive - HCL Technologies Ltd\Desktop\Security Vulnerabilities Or WhiteSource\kony-jenkins-buildparameters-plugin\target\classes
      [INFO]
      [INFO] — access-modifier-checker:1.29:enforce (default-enforce) @ buildparameters —
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:115 hudson/triggers/Messages must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:133 hudson/scheduler/CronTabList.previous()Ljava/util/Calendar; must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:134 hudson/scheduler/CronTabList.next()Ljava/util/Calendar; must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:137 hudson/triggers/Messages must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:140 hudson/triggers/Messages must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterDefinition$DescriptorImpl:144 hudson/triggers/Messages must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterValue:96 hudson/scheduler/CronTabList.previous()Ljava/util/Calendar; must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterValue:97 hudson/scheduler/CronTabList.next()Ljava/util/Calendar; must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterValue:118 hudson/triggers/Messages must not be used
      [ERROR] com/kony/AppFactory/Jenkins/parameters/cron/CronParameterValue:127 hudson/triggers/Messages must not be used

            Unassigned Unassigned
            sirishabonthu Bonthu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: