Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Atlassian竹子SSH部署到Heroku时出现路径错误_Git_Heroku_Ssh_Bitbucket_Bamboo - Fatal编程技术网

Git Atlassian竹子SSH部署到Heroku时出现路径错误

Git Atlassian竹子SSH部署到Heroku时出现路径错误,git,heroku,ssh,bitbucket,bamboo,Git,Heroku,Ssh,Bitbucket,Bamboo,您好:我正在尝试一些我认为应该非常简单的事情——使用竹子将node.js Bitbucket存储库的内容推送到Heroku。当我从本地存储库推送到Bitbucket时触发CI计划,然后触发竹部署任务。由于Heroku插件只适用于Java WAR文件,因此我选择了SSH任务,并使用了两个git CLI命令: git config——全局url。ssh://git@heroku.com/。而不是 git推送git@heroku.com:rewindpoloonline.git 但是,当我(手动)尝试

您好:我正在尝试一些我认为应该非常简单的事情——使用竹子将node.js Bitbucket存储库的内容推送到Heroku。当我从本地存储库推送到Bitbucket时触发CI计划,然后触发竹部署任务。由于Heroku插件只适用于Java WAR文件,因此我选择了SSH任务,并使用了两个git CLI命令:

git config——全局url。ssh://git@heroku.com/。而不是 git推送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
启动“com.atlassian.bambol.plugins.bambol scp plugin:sshtask”类型的任务“将Polo在线源代码推送至Heroku”
2015年1月24日09:39:38连接heroku.com端口:22
2015年1月24日09:39:38执行[
2015年1月24日09:39:38 git配置--全局url。ssh://git@heroku.com/。而不是https://git.heroku.com/
2015年1月24日09:39:38吉特推送git@heroku.com:rewindpoloonline.git master
2015年1月24日09:39:38]
2015年1月24日09:39:38
2015年1月24日09:39:38!无效路径。
2015年1月24日09:39:38!语法是:git@heroku.com:.git您的应用程序的名称在哪里。
2015年1月24日09:39:38
2015年1月24日09:39:38[
2015年1月24日09:39:38 git配置--全局url。ssh://git@heroku.com/。而不是https://git.heroku.com/
2015年1月24日09:39:38吉特推送git@heroku.com:rewindpoloonline.git master
2015年1月24日09:39:38]已完成。
2015年1月24日09:39:38结果:退出代码=1
2015年1月24日09:39:38 SSH命令失败。失败的构建。
2015年1月24日09:39:38完成任务“将Polo在线源推送至Heroku”,结果:失败
如果我使用来自终端(Mac OS X 10.1)的相同git CLI命令(在我看来)来确认SSH密钥(带密码)已正确部署到Heroku,那么这一切都会起作用