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

newServer does not work as documented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: Common
    • Labels:
      None

      Description

      In Jenkinsfile

      def kserver =  Artifactory.newServer url: 'http://10.x.x.41:8040/artifactory', credentialsId  = 'c43a3c0a-0b4d-4048-8d7d-9ebf64deaf65'

      I get this error as soon as I start the build:
      hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jfrog.hudson.pipeline.scripted.dsl.ArtifactoryPipelineGlobal.newServer() is applicable for argument types: (java.util.LinkedHashMap, null) values: [url:[http://10.x.x.41:8040/artifactory, null]

      Possible solutions: newServer(java.util.Map), newServer(java.lang.String, java.lang.String, java.lang.String)

      If I use username / password it works. I think credentialsId should work, I don't want to have this info on the Jenkinsfile. If I configure it with with "kserver.credentialsId = "XXX"" it gets ignored.

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            andrm Andreas Mack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: