Add function for Artifactory Version to org.jfrog.hudson.pipeline.common.types.ArtifactoryServer

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: artifactory-plugin
    • None
    • Environment:
      Artifacotry plugin 3.2.1

      Different Artifactory versions (Licence) support different features. Particularly, I have a "Pro" server which supports buildInfo and an OSS server which does not. I want to be able to determine which server version I am uploading to in my pipeline in order to determine whether or not I can publish buildInfo. I could not find a method on org.jfrog.hudson.pipeline.common.types.ArtifactoryServer. I did see isArtifactoryPro() onĀ org.jfrog.hudson.ArtifactoryServer but I couldn't find how to use it.

      Ā 

      As a workaround, I'm currently calling the Artifactory APIĀ GET /api/system/version which returns a license field of either 'Artifactory OSS' or a long license string.

            Assignee:
            Eyal Ben Moshe
            Reporter:
            Adam Brousseau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: