嗨:我正在尝试一些我认为应该非常简单的事情 - 使用Bamboo将node.js Bitbucket存储库的内容推送到Heroku . 当我从本地存储库推送到Bitbucket时触发CI计划,然后它触发Bamboo部署任务 . 由于Bamboo的Heroku插件仅适用于Java WAR文件,因此我选择了SSH任务,并使用了两个git CLI命令:
git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/ git push git@heroku.com:rewindpoloonline.git
但是,当我(手动)尝试部署计划时,我收到以下错误:
Starting task 'Push Rewind Polo Online Source to Heroku' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
24-Jan-2015 09:39:38 Connecting to heroku.com on port: 22
24-Jan-2015 09:39:38 Executing [
24-Jan-2015 09:39:38 git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
24-Jan-2015 09:39:38 git push git@heroku.com:rewindpoloonline.git master
24-Jan-2015 09:39:38 ]
24-Jan-2015 09:39:38
24-Jan-2015 09:39:38 ! Invalid path.
24-Jan-2015 09:39:38 ! Syntax is: git@heroku.com:<app>.git where <app> is your app's name.
24-Jan-2015 09:39:38
24-Jan-2015 09:39:38 [
24-Jan-2015 09:39:38 git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
24-Jan-2015 09:39:38 git push git@heroku.com:rewindpoloonline.git master
24-Jan-2015 09:39:38 ] has finished.
24-Jan-2015 09:39:38 Result: exit code = 1
24-Jan-2015 09:39:38 SSH command failed. Failing build.
24-Jan-2015 09:39:38 Finished task 'Push Rewind Polo Online Source to Heroku' with result: Failed
如果我使用来自终端(Mac OS X 10.1)的相同git CLI命令确认(在我看来)SSH密钥(带密码)已正确部署到Heroku,这一切都有效 .