【问题标题】:Jenkins setup using Google AppEngine source code使用 Google AppEngine 源代码设置 Jenkins
【发布时间】:2014-06-21 06:03:31
【问题描述】:

我在谷歌应用引擎中创建了一个应用程序,并将我的代码推送到谷歌提供的 git 中。现在我想设置与 cloudbees Jenkins 的 Continuos 集成。

当我在 Jenkins 中使用存储库 url 作为源代码级别的 url 创建作业时,出现以下错误

Failed to connect to repository : Command "git ls-remote -h https://source.developers.google.com/p/my-application-name/r/default HEAD" returned status code 128:
stdout: 
stderr: fatal: remote error: Invalid username/password.
You may need to use your OAuth token password; Note that generated google.com passwords are not compatible with private repositories

我使用的存储库网址是:

https://source.developers.google.com/p/my-application-name/r/default

如何创建 OAuth 令牌?

【问题讨论】:

    标签: jenkins continuous-integration cloudbees


    【解决方案1】:

    OAuth 是一种协议,允许外部应用程序请求授权用户 GitHub 帐户中的私人详细信息,而无需获取其密码。这比基本身份验证更受欢迎,因为令牌可以限制为特定类型的数据,并且用户可以随时撤销。

    所有开发者都需要在开始之前注册他们的应用程序。已注册的 OAuth 应用程序分配有唯一的客户端 ID 和客户端密码。不应共享客户端密码。

    请您阅读以下文章:

    https://developer.github.com/v3/oauth/

    还可以查看 Jenkins 的 git 身份验证插件:

    https://wiki.jenkins-ci.org/display/JENKINS/Github+OAuth+Plugin

    【讨论】:

      猜你喜欢
      • 2018-09-13
      • 2013-11-29
      • 1970-01-01
      • 2020-06-07
      • 2012-11-02
      • 2017-05-03
      • 2012-10-09
      • 2022-01-01
      • 1970-01-01
      相关资源
      最近更新 更多