由于某些原因,当我试图在我们的临时服务器上注册一个runner时,我一直收到“无法注册这个runner。可能您的SSH密钥无效或者您有网络问题”的错误。
我在同一台服务器上安装了Gitlab 6.3和Gitlab CI 4.0协调器,并且正在尝试将runner安装在单独的临时服务器上。Gitlab CI协调器端似乎正在工作。我可以登录CI站点,它会看到我的Gitlab存储库,我可以将项目添加到Gitlab CI站点上的CI中。
我之前遇到的一个问题是,我在运行Gitlab 6.1时安装了Gitlab CI 4.0,然后才意识到Gitlab 6.3是Gitlab CI 4.0的前提条件。然后我将
我有一个运行gitlab runner的虚拟服务器。我现在添加了一些GUI单元测试,它们在我的pc上运行得很好,但不能在虚拟服务器上运行。
它总是以如下方式退出:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
你知道怎么用gitlab-ci来运行吗?
编辑:
我的虚拟服务器正在运行centos 7
这是我当前的.gitlab-ci.yml
image: kaiwinter/docker-java8-m
在ubuntu (12.04LTS)上安装gitlab ci (继续集成)时,在步骤5(设置应用程序)中出现以下错误
来自:
root@s2:~# cd /home/gitlab_ci/gitlab-ci/
root@s2:/home/gitlab_ci/gitlab-ci# sudo -u gitlab_ci -H gem install bundler
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/lib/
我想在单独的服务器上安装GitLab运行程序,但当我尝试连接到GitLab时,我收到以下消息:
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
<URL>
Please enter the gitlab-ci token for this runner:
<TOKEN>
Please enter the gitlab-ci description for th
我在Windows上实现一个在..gitlab ci.yml中运行pytest的示例程序时遇到了困难:
使用Shell执行器的.
请找下面的..gitlab ci.yml:
# .gitlab-ci.yml
test_sample:
stage: test
tags:
- test_sam
script:
- echo "Testing"
- pytest -s Target\tests
when: manual
CI/CD终端输出:
pytest is not recognized as the name of a cmdlet,
我有一个私有的GitLab存储库和管理权限。要配置CI/CD。根据,我尝试注册一个共享的运行程序。为此,我在本地安装了gitlab-runner,并试图按照docs中描述的步骤注册。
gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
//As far as I use Gitlab CI, I enter default value: https://gitlab.com/
Please enter the gitlab-ci token for this
我过去曾使用Gitlab页面进行反应部署,除了VueJS之外,它们工作得很好。在遵循示例之后,即使在Gitlab CI管道成功之后,我仍然无法为GitLab页面生成一个网站链接。有人能帮忙吗?
这就是..gitlab ci.yml的样子:
# .gitlab-ci.yml file to be placed in the root of your repository
pages: # the job must be named pages
image: node:latest
stage: deploy
script:
- npm ci
- npm run bu
我的项目是在windows和linux下构建的,我在windows上安装了一个gitlab运行程序,在linux机器上设置了一个。现在,我想配置“..gitlab ci.yml”,以便在这两台机器上构建。但是,根据操作系统的不同,我想为构建调用不同的构建脚本。
例如“..gitlab ci.yaml”(不起作用)
mybuild:
# on linux
script:
- ./build-linux.sh
# on windows
script
- buildwin.bat
我如何在..gitlab ci.yml中实现这一点?