How can I get the variable written on the console in AWS codebuild buildspec #3125
Unanswered
sprabha1990
asked this question in
Q&A
Replies: 1 comment 2 replies
-
From GitVersion/src/GitVersion.Core/BuildAgents/CodeBuild.cs Lines 33 to 41 in 5564596 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My buildspec script runs the
dotnet-gitversion
tool to get the SemVer value of my dotnet6 package library. I was using the output type as buildserver which write the value in the console as expected. But once the process ends, I can't access the variable. Say the build phase in my buildspec have the following commandIt writes all the variables and its values in the console as below:
So, now I'm trying to get the value of
GitVersion_SemVer
in the post build phase for other operations like packing and pushing the nuget package. But I'm not sure how to get it. Tried several combinations like$GitVersion_SemVer
,$(GitVersion_SemVer)
, etc.Any help would be much appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions