Skip to content

Add configuration parameter to format CommitDate #1305

Closed
@ccHanibal

Description

@ccHanibal

We use the last commit date of a repository to build artifact names on Jenkins.
Currently we extract it with git log -1 --format=COMMIT_DATE=%%cd --date=format:%%Y%%m%%d > gitdate.prop and inject it later on.
We now plan to use gitversion for calculating version numbers. In this step it would be perfect if we could replace our current step to get the date with gitversion as well, but we need it formatted without dashes.

Any chance to add a configuration parameter commit-date-format so that one can customize the output of gitversion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions