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

Latest update fails with No Artifactory server configured for null; Duplicate upload server in config

      I updated my jenkins to latest (2.184) and installed the artifactory plugin to try out the upload of built binaries from a fresh project.

      Getting these errors in my job console log: 
      Jenkins Artifactory Plugin version: 3.3.2*09:52:17* No Artifactory server configured for null. Please check your configuration.09:52:17 FATAL: No Artifactory server configured for null. Please check your configuration.09:52:17 java.io.IOException: No Artifactory server configured for null. Please check your configuration.09:52:17 at org.jfrog.hudson.util.RepositoriesUtils.validateServerConfig(RepositoriesUtils.java:191)09:52:17 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.setUp(ArtifactoryGenericConfigurator.java:291)09:52:17 at hudson.model.Build$BuildExecution.doRun(Build.java:157)09:52:17 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)09:52:17 at hudson.model.Run.execute(Run.java:1818)09:52:17 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)09:52:17 at hudson.model.ResourceController.execute(ResourceController.java:97)09:52:17 at hudson.model.Executor.run(Executor.java:429)

      Job config lists multiple selections even though I configured only one server.
      Please see attached image for details.

      ------------------------------
      This is what I've configured/investigated to help your debugging:

      A) Artifactory server is configured properly in Jenkins->Configuration (as seen in the attached image). Ensured that "Test connection" it returns a valid value: "Found Artifactory 6.10.2
      "
      B) Using a simple Generic-Artifactory Integration selection with file spec.

      C) Repo list through curl on server is fine:
      Curl (curl -u<user> https://..../artifactory/api/repositories?type=local) returns valid repo list.

      D) A different older instance of jenkins with version 2.164.1 shows a different UI in config (see attached image - old-working-config.jpg) and is working fine.

      E) The config on current jenkins server worked fine a few days back and uploaded my files successfully. Problems started since jenkins upgrade and reinstall of plugin. I downgraded the war and plugin and checked but still didn't help.

      F) Did a search for any existing problems but didn't find. This error has been reported earlier but seems to be an old closed issue, possibly occurring again.

        1. old-working-config.JPG
          old-working-config.JPG
          55 kB
        2. job-config.JPG
          job-config.JPG
          85 kB
        3. cred.JPG
          cred.JPG
          56 kB

          [JENKINS-58435] Latest update fails with No Artifactory server configured for null; Duplicate upload server in config

          nag bhushan created issue -

          Catalin Mocanu added a comment - - edited

          Also I tried with artifactory plugin versions: 3.3.2, 3.3.1, 3.3.0, 3.2.4 and I receive same error.

          Can this problem be fixed asap?

          Catalin Mocanu added a comment - - edited Also I tried with artifactory plugin versions: 3.3.2, 3.3.1, 3.3.0, 3.2.4 and I receive same error. Can this problem be fixed asap?

          I think that this issue is similar to the below github issue, which also includes a temporary workaround:

          https://github.com/jfrog/jenkins-artifactory-plugin/issues/166

          Eyal Ben Moshe added a comment - I think that this issue is similar to the below github issue, which also includes a temporary workaround: https://github.com/jfrog/jenkins-artifactory-plugin/issues/166

          nag bhushan added a comment -

          Downgrading Promoted Builds Plugin to version 3.2 works for me, thanks for the workaround!

          nag bhushan added a comment - Downgrading Promoted Builds Plugin to version 3.2 works for me, thanks for the workaround!

          We also find out same problem.

          Tapio Reijonen added a comment - We also find out same problem.

            eyalbe Eyal Ben Moshe
            bhushan1 nag bhushan
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: