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

ClassNotFoundException exception happens if a dependent plugin is not installed

    Details

    • Similar Issues:

      Description

      New core versions print warnings if a non-optional extension loading fails. All @Extension specs in the plugin should have an optional attribute

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Adrien Lecharpentier
          Path:
          src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/build_timeout/ConditionalTimeout.java
          src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/build_timeout/RunConditionTimeoutStrategy.java
          src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/mail_ext/RunConditionEmailTrigger.java
          http://jenkins-ci.org/commit/run-condition-extras-plugin/905dccb190e122dd68342f92e8b45f0a0414fea7
          Log:
          JENKINS-28150 Fix optional dependency loading

          The extensions here that are using an optional dependency's class must
          be mark as optional. If not, we can see `ClassNotFoundException` when
          Jenkins load this plugin.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Adrien Lecharpentier Path: src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/build_timeout/ConditionalTimeout.java src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/build_timeout/RunConditionTimeoutStrategy.java src/main/java/com/synopsys/arc/jenkinsci/plugins/run_condition_extras/adapters/mail_ext/RunConditionEmailTrigger.java http://jenkins-ci.org/commit/run-condition-extras-plugin/905dccb190e122dd68342f92e8b45f0a0414fea7 Log: JENKINS-28150 Fix optional dependency loading The extensions here that are using an optional dependency's class must be mark as optional. If not, we can see `ClassNotFoundException` when Jenkins load this plugin.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It has been fixed by Adrien in run-condition-extras-0.2

          Show
          oleg_nenashev Oleg Nenashev added a comment - It has been fixed by Adrien in run-condition-extras-0.2

            People

            • Assignee:
              alecharp Adrien Lecharpentier
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: