BoostingMy / vsts-heroku-tasks

Release tasks for interacting with heroku on Visual Studio Team Services.
MIT License
1 stars 7 forks source link

Stuck at push #5

Open AndreiBrajnicov opened 6 years ago

AndreiBrajnicov commented 6 years ago

Hello.

I'm unable to deploy using this plugin.

It performs all steps successfully, but it stucks at the final step:

2018-05-23T14:14:14.3428977Z Starting to push changes
2018-05-23T14:14:14.3429057Z 
2018-05-23T14:14:14.3429106Z 
2018-05-23T14:18:18.9303845Z git push -f origin master
2018-05-23T14:18:18.9304054Z Push finished.
2018-05-23T14:18:18.9304112Z 
2018-05-23T14:18:18.9304162Z 
2018-05-23T14:18:26.0868593Z ##[error]The operation was canceled.
2018-05-23T14:18:26.0898992Z ##[section]Finishing: Push to Heroku: 

In this output it was canceled. I tried to wait it even 15 minutes, but every time I had the same result. Final step wasn't completing.

it is possible somehow to solve this problem?

ajross commented 6 years ago

I'm getting the same issue, did you find a resolution to this?

majorb84 commented 5 years ago

Same issue for me. Anyone find a work around?

bke-daniel commented 5 years ago

Same here! :(

sjoulbak commented 5 years ago

Same here, as workaround I created a script which can push a branch to Heroku. This script needs to run on the Hosted Ubuntu 1604 pool. You have to define an artifact, which source alias will be used as the PROJECT_ROOT. And you have to create a Command line task and use the following code:

PROJECT_ROOT=""
HEROKU_API_KEY=""
HEROKU_APP_NAME=""
REMOTE_BRANCH=""

cd $PROJECT_ROOT

git remote add heroku https://vsts:$HEROKU_API_KEY@git.heroku.com:443/$HEROKU_APP_NAME.git

git push -u heroku origin/$REMOTE_BRANCH:master

And fill in the environment variables 😄

Limitations: