Skip to content

shayki5/azure-devops-get-revision-task

Repository files navigation

Build Release
Build Status Release Status

Get Revision Number

Get the build revision number and set it as a variable - $(Revision) for the next tasks.

For example, if the build number is 3.6.1, you will get a variable with the value 1.

The build number should contains $(Rev:.r) in the end of the number, for example: $(Date:yyyyMMdd)$(Rev:.r).

By default the variable name will be $(Revision) but you can determine the name in the task.

Usage

In the classic editor:

Task

  • Variable Name: The variable name of the revision number for use in the next tasks, by default is Revision, you can use it in inline tasks - $(Revision).

In yaml piepline:

- task: GetRevision@1
  displayName: 'Get Revision'
  inputs:
    VariableName: Revision

Knowen Issues

  • None.

Release Notes

New in 1.0.0

  • First version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published