Version from git tag extracts the version number from the tag name when a build is triggered from a tag. Versionnumbers must conform with the semver standard. Valid tags are Input parametersfailOnInvalidVersion A boolean flag indicating that the task should fail when no valid version detected. Default false Output variablesversionIsValid A true/false string value indicating that the task was able to extract the version version The full semver version number. If the tag is tags/1.2 this will be '1.2.0' Empty when no valid version set versionMajor The major version number Empty when no valid version set versionMinor The minor version number Empty when no valid version set versionPatch The patch version number Empty when no valid version set Example
|