Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11595 (closed)

Opened 6 years ago

Closed 6 years ago

Bug: Version number and git tag/hash not embedded in source release

Reported by: rleigh Owned by: rleigh
Priority: major Milestone: 5.x
Component: Deployment Version: 5.0.0-beta1
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

To remove the reliance upon git for versioning in the openmicroscopy build, the metadata retrieved from git must be embedded in the source release to allow building without the need for git. This must allow for building from a release zip/tar file without the presence of a git program or .git directory.

Examples:
https://bitbucket.org/rleigh-debian/schroot-dist/src/2916b056f479885c331fad042041583884e5a797/VERSION?at=distribution-1.7
https://bitbucket.org/rleigh-debian/schroot-dist/src/2916b056f479885c331fad042041583884e5a797/cmake/GitVersion.cmake?at=distribution-1.7

created using
https://bitbucket.org/rleigh-debian/schroot-dist/src/2916b056f479885c331fad042041583884e5a797/cmake/GitRelease.cmake?at=distribution-1.7

The requirement is that the needed metadata be placed in a file which can be sourced and used to set the appropriate properties/variables for ant, maven and cmake. Where the systems are not compatible, it's possible to create different files for the different build systems, as illustrated above. It would be best if the same strategy could be used for both bioformats and openmicroscopy. In the above example, the information is derived from the git tag and its referenced commit.

The behaviour for the build systems to follow is to source the file if present, otherwise fall back to using git. This file will never be present in a git working tree.

At a minimum, this must include:

  • the release date
  • the release tag/commit (tag preferred; commit if untagged)
  • the release version number

Change History (4)

comment:1 Changed 6 years ago by jburel

  • Milestone changed from 5.0.0-beta2 to 5.0.0

Moving to OMER0 5

comment:2 Changed 6 years ago by jburel

Referencing ticket #11593 has changed sprint.

comment:4 Changed 6 years ago by rleigh

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.80442 sec.)

We're Hiring!