Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I keep getting this error #3

Open
louisdb03 opened this issue Oct 22, 2017 · 2 comments
Open

I keep getting this error #3

louisdb03 opened this issue Oct 22, 2017 · 2 comments

Comments

@louisdb03
Copy link

Hi I'm trying to do a push to Heroku from VSTS. I have a Rails repository that should be pushed, I've skippped the building part and trying to directly push from the master branch (normaly heroku takes care of the rest). However I'm keeping to get this error, I'm geussing I have some authentication issues, but no clue how to resolve this. Can anybody help?

2017-10-22T10:20:25.6280560Z ##[error]System.Management.Automation.RuntimeException: git push origin master
2017-10-22T10:20:25.6280560Z [git] /usr/bin/bash: /dev/tty: No such device or address
2017-10-22T10:20:25.6280560Z [git] error: failed to execute prompt script (exit code 1)
2017-10-22T10:20:25.6280560Z fatal: could not read Username for 'https://ghenterprise.visualstudio.com': No error
2017-10-22T10:20:25.6280560Z  ---> System.Management.Automation.RuntimeException: git push origin master
2017-10-22T10:20:25.6280560Z [git] /usr/bin/bash: /dev/tty: No such device or address
2017-10-22T10:20:25.6280560Z [git] error: failed to execute prompt script (exit code 1)
2017-10-22T10:20:25.6280560Z fatal: could not read Username for 'https://ghenterprise.visualstudio.com': No error
2017-10-22T10:20:25.6280560Z 
2017-10-22T10:20:25.6280560Z    --- End of inner exception stack trace ---
2017-10-22T10:20:25.6280560Z    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2017-10-22T10:20:25.6280560Z    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2017-10-22T10:20:25.6280560Z    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2017-10-22T10:20:25.6280560Z    at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-10-22T10:20:25.6280560Z    at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-10-22T10:20:25.6280560Z    at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args)
2017-10-22T10:20:25.6370594Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1.
@xakpc
Copy link

xakpc commented Jan 10, 2018

This module performs Heroku update by scripted git push
If you set your repository as an Artifact in Release Definition the script will try to perform push to original location (VisualStudio repo in your case)

I was forced to create Build Definition, remove .git folder and setup Publish Artifact task there. When I setup Release Definition with this artifact the script works normally

@froston
Copy link

froston commented Jun 16, 2022

@louisdb03 Could you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants