Role-based Authorization compile has nine (9) deprecated warnings arising from API external to this plugin:

      1. deprecated Jenkins.RUN_SCRIPTS field once
      2. deprecated PluginManager fields twice:
        • CONFIGURE_UPDATECENTER
        • UPLOAD_PLUGINS
      3. deprecated Jenkins.getInstance() method once
      4. deprecated Jenkins.getActiveInstance() method 5 times

      Proposed resolution:

      • @SuppressWarnings("deprecation") above field declaration resolved 1 and 2 above
      • Replace Jenkins.getInstance() with Jenkins.getInstanceOrNull() per JavaDoc.
      • Replace Jenkins.getActiveInstance() with Jenkins.get() per JavaDoc.

      Consider this a newbie contributor training exercise.

          [JENKINS-67425] Remove External API Deprecated Warnings

          Conrad T. Pino created issue -
          Conrad T. Pino made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ] New: Conrad T. Pino [ conrad_t_pino ]
          Conrad T. Pino made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Conrad T. Pino made changes -
          Link New: This issue relates to JENKINS-67393 [ JENKINS-67393 ]
          Conrad T. Pino made changes -
          Link New: This issue relates to JENKINS-67413 [ JENKINS-67413 ]
          Conrad T. Pino made changes -
          Link New: This issue relates to JENKINS-67406 [ JENKINS-67406 ]
          Conrad T. Pino made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Conrad T. Pino made changes -
          Status Original: In Review [ 10005 ] New: In Progress [ 3 ]
          Conrad T. Pino made changes -
          Description Original: Role-based Authorization compile has nine (9) deprecated warnings:
           * 1 is deprecated {{Jenkins.RUN_SCRIPTS}} field
           * 2 are deprecated {{PluginManager}} fields:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           * 1 is deprecated {{Jenkins.getInstance()}} method
           * 5 are deprecated {{Jenkins.getActiveInstance()}} method

          Consider this a newbie contributor training exercise.
          New: Role-based Authorization compile has nine (9) deprecated warnings in API external to this plugin:
           * 1 is deprecated {{Jenkins.RUN_SCRIPTS}} field
           * 2 are deprecated {{PluginManager}} fields:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           * 1 is deprecated {{Jenkins.getInstance()}} method
           * 5 are deprecated {{Jenkins.getActiveInstance()}} method

          Consider this a newbie contributor training exercise.
          Conrad T. Pino made changes -
          Description Original: Role-based Authorization compile has nine (9) deprecated warnings in API external to this plugin:
           * 1 is deprecated {{Jenkins.RUN_SCRIPTS}} field
           * 2 are deprecated {{PluginManager}} fields:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           * 1 is deprecated {{Jenkins.getInstance()}} method
           * 5 are deprecated {{Jenkins.getActiveInstance()}} method

          Consider this a newbie contributor training exercise.
          New: Role-based Authorization compile has nine (9) deprecated warnings in API external to this plugin:
           # deprecated {{Jenkins.RUN_SCRIPTS}} field once
           # deprecated {{PluginManager}} fields twice:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           # deprecated {{Jenkins.getInstance()}} method once
           # deprecated {{Jenkins.getActiveInstance()}} method 5 times

          Proposed resolution:
           * {{@SuppressWarnings("deprecation")}} above method declaration resolved 1 and 2 above
           * Replace {{Jenkins.getInstance()}} with {{Jenkins.getInstanceOrNull()}} per JavaDoc.
           * Replace {{Jenkins.getActiveInstance()}} with {{Jenkins.get()}} per JavaDoc.

          Consider this a newbie contributor training exercise.
          Conrad T. Pino made changes -
          Description Original: Role-based Authorization compile has nine (9) deprecated warnings in API external to this plugin:
           # deprecated {{Jenkins.RUN_SCRIPTS}} field once
           # deprecated {{PluginManager}} fields twice:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           # deprecated {{Jenkins.getInstance()}} method once
           # deprecated {{Jenkins.getActiveInstance()}} method 5 times

          Proposed resolution:
           * {{@SuppressWarnings("deprecation")}} above method declaration resolved 1 and 2 above
           * Replace {{Jenkins.getInstance()}} with {{Jenkins.getInstanceOrNull()}} per JavaDoc.
           * Replace {{Jenkins.getActiveInstance()}} with {{Jenkins.get()}} per JavaDoc.

          Consider this a newbie contributor training exercise.
          New: Role-based Authorization compile has nine (9) deprecated warnings arising from API external to this plugin:
           # deprecated {{Jenkins.RUN_SCRIPTS}} field once
           # deprecated {{PluginManager}} fields twice:
           ** {{CONFIGURE_UPDATECENTER}}
           ** {{UPLOAD_PLUGINS}}
           # deprecated {{Jenkins.getInstance()}} method once
           # deprecated {{Jenkins.getActiveInstance()}} method 5 times

          Proposed resolution:
           * {{@SuppressWarnings("deprecation")}} above method declaration resolved 1 and 2 above
           * Replace {{Jenkins.getInstance()}} with {{Jenkins.getInstanceOrNull()}} per JavaDoc.
           * Replace {{Jenkins.getActiveInstance()}} with {{Jenkins.get()}} per JavaDoc.

          Consider this a newbie contributor training exercise.

            conrad_t_pino Conrad T. Pino
            conrad_t_pino Conrad T. Pino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: