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
I want to host a Sampler project on Azure DevOps, hence I have added the tasks of Sampler.AzureDevOpsTasks tasks. I have added the variable BasicAuthPAT with the secret PAT to the pipeline and publish the variable to the tasks (BasicAuthPAT: $(BASICAUTHPAT)). The error I get is:
The error does not seem to be an authentication problem but the way how git is called or the PAT is passed over to git. When joining the arguments to a string and calling git manually, things work. When using & git $Argument it fails.
About to create the tag 'v0.2.0-preview0001' for module version '0.2.0-preview0001'.
Setting git configuration.
Getting HEAD commit for the default branch 'main.
Creating tag 'v0.2.0-preview0001' on the commit '9a3e5cabb99220d9d5d29faa79a2263b0f2e85bd'.
Pushing created tag 'v0.2.0-preview0001' to the default branch 'main'.
Using personal access token to push the tag.
fatal: Unsupported SSL backend '"schannel"'. Supported SSL backends:
schannel
fatal: remote helper 'https' aborted session
ERROR: git returned exit code 128 indicated failure.
At D:\RaandreeSamplerTest2\output\RequiredModules\Sampler\9.9.9\Sampler.psm1:1600 char:9
+ throw "git returned exit code $LASTEXITCODE indicated failure …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At D:\RaandreeSamplerTest2\output\RequiredModules\Sampler\9.9.9\tasks\Create_Release_Git_Tag.build.ps1:98 char:1
+ task Create_Release_Git_Tag {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 3 tasks, 1 errors, 0 warnings 00:00:00.5162167
Exception: git returned exit code 128 indicated failure.
Problem description
I want to host a Sampler project on Azure DevOps, hence I have added the tasks of
Sampler.AzureDevOpsTasks
tasks. I have added the variableBasicAuthPAT
with the secret PAT to the pipeline and publish the variable to the tasks (BasicAuthPAT: $(BASICAUTHPAT)
). The error I get is:The error does not seem to be an authentication problem but the way how git is called or the PAT is passed over to git. When joining the arguments to a string and calling git manually, things work. When using
& git $Argument
it fails.Am I missing something?
Verbose logs
How to reproduce
https://dev.azure.com/randree/RaandreeSamplerTest2
Expected behavior
NA
Current behavior
NA
Suggested solution
NA
Operating system the target node is running
PowerShell version and build the target node is running
Module version used
The text was updated successfully, but these errors were encountered: