Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-516

Artifactory plugin 2.2.4 combined with Flexible publish plugin 0.12 cause an error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jenkins 1.575, Flexible Publish plugin 0.12

      Description

      When using Artifactory plugin 2.2.4 and Flexible Publish plugin 0.12, you are running into this error: " Failed to instantiate class org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher" when trying to save the job.

      Steps to reproduce it:

      On the script console in Jenkins:

      import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
      
      def job = hudson.model.Hudson.instance.getItem('name of the job')
      list job
      

      you will get a response 'Deploy artifacts to Artifactory'

      Now put:

      import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
      
      def job = hudson.model.Hudson.instance.getItem('name of the job')
      movePublisher job, 'Deploy artifacts to Artifactory'
      

      It will give you an result of true.

      Now go to your job and add the Flexible Publish plugin and try to save the job. It will run into an error
      "Failed to instantiate class org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher"

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              Reporter:
              alexeiv Alexei Vainshtein
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: