We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528ce32 commit 81e637eCopy full SHA for 81e637e
DockerBuild.ps1
@@ -147,9 +147,12 @@ if (-not $KeepEnv)
147
# Add git identity to environment
148
if ($env:IS_TEAMCITY_AGENT)
149
{
150
- # On TeamCity agents, use a fixed git user.
151
- $env:GIT_USER_EMAIL = '[email protected]'
152
- $env:GIT_USER_NAME = 'teamcity'
+ # On TeamCity agents, check if the environment variables are set.
+ if (-not $env:GIT_USER_EMAIL -or -not $env:GIT_USER_NAME)
+ {
153
+ Write-Error "On TeamCity agents, the GIT_USER_EMAIL and GIT_USER_NAME environment variables must be set."
154
+ exit 1
155
+ }
156
}
157
else
158
0 commit comments