You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is no wiki and I can't find information in web how to use this task. I managed to add jsons in my artifact and the json also has all my values. My question is how do I access my variables in a release task (for example I have a Powershell inline task where I need GitVersion.MajorMinorPatch)?
Hi, there is no wiki and I can't find information in web how to use this task. I managed to add jsons in my artifact and the json also has all my values. My question is how do I access my variables in a release task (for example I have a Powershell inline task where I need GitVersion.MajorMinorPatch)?
This is how my GitVersion JSON looks like:
[ { "Name": "GITVERSION_LEGACYSEMVERPADDED", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_PRERELEASETAG", "Value": "alpha.1" }, { "Name": "GITVERSION_PRERELEASENUMBER", "Value": "1" }, { "Name": "GITVERSION_INFORMATIONALVERSION", "Value": "1.2.0-alpha.1+Branch.develop.Sha.be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_NUGETPRERELEASETAGV2", "Value": "alpha0001" }, { "Name": "GITVERSION_NUGETVERSIONV2", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_MAJOR", "Value": "1" }, { "Name": "GITVERSION_PRERELEASELABEL", "Value": "alpha" }, { "Name": "GITVERSION_SHA", "Value": "be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_LEGACYSEMVER", "Value": "1.2.0-alpha1" }, { "Name": "GITVERSION_NUGETVERSION", "Value": "1.2.0-alpha0001" }, { "Name": "GITVERSION_BUILDMETADATA", "Value": "" }, { "Name": "GITVERSION_FULLBUILDMETADATA", "Value": "Branch.develop.Sha.be0465c06880dfea1b6a67cf83a975496b70bde3" }, { "Name": "GITVERSION_MAJORMINORPATCH", "Value": "1.2.0" }, { "Name": "GITVERSION_COMMITSSINCEVERSIONSOURCEPADDED", "Value": "0001" }, { "Name": "GITVERSION_VERSION", "Value": "4.0.0-beta0012" }, { "Name": "GITVERSION_FULLSEMVER", "Value": "1.2.0-alpha.1" }, { "Name": "GITVERSION_COMMITDATE", "Value": "2018-06-22" }, { "Name": "GITVERSION_PATCH", "Value": "0" }, { "Name": "GITVERSION_ASSEMBLYSEMFILEVER", "Value": "1.2.0.0" }, { "Name": "GITVERSION_PRERELEASETAGWITHDASH", "Value": "-alpha.1" }, { "Name": "GITVERSION_BUILDMETADATAPADDED", "Value": "" }, { "Name": "GITVERSION_NUGETPRERELEASETAG", "Value": "alpha0001" }, { "Name": "GITVERSION_COMMITSSINCEVERSIONSOURCE", "Value": "1" }, { "Name": "GITVERSION_ASSEMBLYSEMVER", "Value": "1.2.0.0" }, { "Name": "GITVERSION_BRANCHNAME", "Value": "develop" }, { "Name": "GITVERSION_SEMVER", "Value": "1.2.0-alpha.1" }, { "Name": "GITVERSION_MINOR", "Value": "2" } ]
The text was updated successfully, but these errors were encountered: