标签: gitlab-8

是否可以在没有 SSH 的情况下在 Gitlab-CI 中执行 git push?

我们想知道,如果在技术上可以像在GitHub上,做了git push使用https协议,而不是ssh没有在卷曲的请求直接使用的用户名和密码。

我见过一些人似乎认为这是可能的,但我们无法证明。

是否有任何证据或证人可以确认允许您使用用户访问令牌或gitlab-ci-tokenCI 内推送的功能?

gitlab gitlab-ci gitlab-ci-runner gitlab-8

6
推荐指数
1
解决办法
4843
查看次数

Gitlab CI - 无法注册运行器

我已经从源代码设置了 gitlab 安装,使用 LetsEncrypt 保护它并将其部署在https://gitlab.mydomain.com. 我可以访问该网站并创建存储库等,但我找不到注册 gitlab ci runner 进行安装的方法。

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci):
https://gitlab.mydomain.com/ci
Please enter the gitlab-ci token for this runner:
xxxxxxxx-xxxxxxxx
Please enter the gitlab-ci description for this runner:
[server]: test
Please enter the gitlab-ci tags for this runner (comma separated):
test
ERROR: Registering runner... failed     runner=xxxxxxx 
status=couldn't execute POST against https://gitlab.mydomain.com/ci/api/v1/runners/register.json:
Post https://gitlab.mydomain.com/ci/api/v1/runners/register.json: 
read tcp [ipv6address]:33518->[ipv6address]:443: read: connection reset by peer
PANIC: Failed to register this runner. Perhaps you are …
Run Code Online (Sandbox Code Playgroud)

continuous-integration gitlab gitlab-ci gitlab-ci-runner gitlab-8

5
推荐指数
1
解决办法
2万
查看次数

使用 GitLab 和 TeamCity 时如何自动构建合并请求

我正在使用 GitLab 8.3.2 和 TeamCity 9.1.6。我已经设置了 JetBrains TeamCity CI 服务,当更改推送到 GitLab 时,它会触发 TeamCity 中的构建。

我希望它在创建合并请求时也触发构建(我的理解是这个构建可以保证点击合并按钮不会破坏事情)。

我已将 TeamCity 中的分支规范设置为:

+:refs/heads/*
+:refs/(merge-requests/*)
Run Code Online (Sandbox Code Playgroud)

我可以在 TeamCity 中看到合并请求,但它们实际上并未构建。

GitLab 中的合并请求显示“xxxx 的 CI 构建挂起”。但是,查看详细信息链接不包含内部版本号。我怀疑这是因为它搜索 TeamCity 以找到匹配的构建并且没有找到它,因为它没有在第一次触发。

我没有在 TeamCity 中配置任何构建触发器。(我最初确实有一个 VCS 触发器,但是一旦我意识到 GitLab 正在为我触发构建,我就把它关掉了。)

如何设置以便合并请求触发 TeamCity 中的构建并让 GitLab 在合并请求中显示构建结果。

teamcity gitlab gitlab-8

3
推荐指数
1
解决办法
4355
查看次数

在哪里可以找到GitLab API的旧文档?

Gitlab API的主站点上,我找不到任何有关旧v3 API版本的文档。在哪里可以找到?

api gitlab gitlab-8 gitlab-api

3
推荐指数
1
解决办法
1269
查看次数

GitLab 取消或删除推送

我想取消上次推送,因为推送了应用程序/构建文件夹更改 是否可以在 Gitlab 中恢复推送或上次推送?

gitlab gitlab-8

2
推荐指数
1
解决办法
1万
查看次数

GitLab 8.15.0恢复备份不起作用

我正在尝试将备份从gitlab A恢复到gitlab B.它们在同一版本(8.15.0)但是当我尝试使用此命令恢复时:

sudo gitlab-ctl stop sidekiq
sudo gitlab-ctl stop unicorn
sudo gitlab-rake gitlab:backup:restore BACKUP=1482434794_2016_12_22
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

rake aborted!
TypeError: no implicit conversion of nil into String
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:122:in `exist?'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:122:in `unpack'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:32:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:backup:restore
(See full trace by running task with --trace)
Run Code Online (Sandbox Code Playgroud)

只需创建root用户,服务器就可以进行全新安装.Git实验室正在运行,我已经运行过一次:

sudo gitlab-ctl reconfigure
Run Code Online (Sandbox Code Playgroud)

我正在使用ubuntu 16.04 LTS并安装了Omnibus版本.我用来进行备份的命令是

sudo gitlab-rake gitlab:backup:create
Run Code Online (Sandbox Code Playgroud)

生成的文件是这样的:

1482434794_2016_12_22_gitlab_backup.tar
Run Code Online (Sandbox Code Playgroud)

我知道我做错了什么?谢谢你的帮助

gitlab gitlab-omnibus gitlab-8

2
推荐指数
1
解决办法
754
查看次数