通常,我在.gitlab-ci.yml中执行以下任务,以便通过SSH在远程服务器上执行命令:
# The job
deploy:
script:
# I've omitted the SSH setup here
- |
ssh gitlab@example.com "
# Makes the server print the executed commands to stdout. Otherwise only the command output is printed. Required for monitoring and
我无法在远程主机上使用来自gitlab CI/CD管道运行器的SSH成功地进行docker-compose。 docker-compose失败,错误如下: http.client.RemoteDisconnected: Remote end closed connection without response
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
我们在私有专用服务器上托管了Gitlab,该服务器只能通过L2TP VPN隧道访问。对于内部网络中的主机,域的DNS设置为IP,因此如果没有VPN,显然是无法访问的。问题是,当触发Gitlab CI/CD时,作业中出现错误,日志如下: Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/web/XXX/.git/
fatal: unable to access 'https://<our domain>/web/XXX.git/'
我在本地运行GitLab和Gitlab-Runner docker实例。当Spring Boot和Maven项目管道被执行时,我得到下面的错误。 Getting source from Git repository
00:02
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/root/starter-springboot-pipeline/.git/
fatal: unable to access 'http://localhost/roo