Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 677 Bytes

version.md

File metadata and controls

27 lines (17 loc) · 677 Bytes

Artifactory version

  • Create artifactory client

      from artifactory import Artifactory
      artifactory = Artifactory(
              url="http://127.0.0.1:8081",
              username="admin",
              password="password",
              )
    
  • Get version details

      version = artifactory.version()
    
      # version.version
      # version.revision
      # version.addons
      # version.license
    
  • Required/optional fields

      print version.required
      print version.optional