Class ApplicationVersion

    • Field Detail

      • unknown

        public static final ApplicationVersion unknown
        Used in cases where application version cannot be determined, such as manual deployments (e.g. in dev environment)
    • Method Detail

      • from

        public static ApplicationVersion from​(SourceRevision source,
                                              long buildNumber)
        Create an application package version from a completed build, without an author email
      • from

        public static ApplicationVersion from​(SourceRevision source,
                                              long buildNumber,
                                              String authorEmail,
                                              com.yahoo.component.Version compileVersion,
                                              Instant buildTime)
        Creates a version from a completed build, an author email, and build meta data.
      • id

        public String id()
        Returns a unique identifier for this version or "unknown" if version is not known
      • source

        public Optional<SourceRevision> source()
        Returns information about the source of this revision, or empty if the source is not know/defined (which is the case for command-line deployment from developers, but never for deployment jobs)
      • buildNumber

        public OptionalLong buildNumber()
        Returns the build number that built this version
      • authorEmail

        public Optional<String> authorEmail()
        Returns the email of the author of commit of this version, if known
      • compileVersion

        public Optional<com.yahoo.component.Version> compileVersion()
        Returns the Vespa version this package was compiled against, if known.
      • buildTime

        public Optional<Instant> buildTime()
        Returns the time this package was built, if known.
      • sourceUrl

        public Optional<String> sourceUrl()
        Returns the source URL for this application version.
      • commit

        public Optional<String> commit()
        Returns the commit name of this application version.
      • isUnknown

        public boolean isUnknown()
        Returns whether this is unknown
      • isDeployedDirectly

        public boolean isDeployedDirectly()
        Returns whether the application package for this version was deployed directly to zone
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object