git - 如何使用 gitlab-ci.yml 从自托管的 gitlab 存储库中提取
问题描述
我有一个在 docker windows 上运行的自托管 gitlab 实例,我已经设置了一个用于构建 gitlab-ci 的运行器。在我的 gitlab-ci.yml 文件中,我提到每次对 git 存储库进行提交时,运行器都应该从存储库中提取最新的源代码。我的 gitlab-ci 文件有以下几行:
git_pull:
stage: build
script:
- echo 'creating a pull request'
- cd "C:\Users\Haroon Gul\STM32CubeIDE\workspace_1.0.2\my-test-project"
- git pull "http://localhost:9090/root/my-test-project.git"
每次运行此步骤时,我都会得到以下输出Logon failed, use ctrl+c to cancel basic credential prompt.
我在 Windows 上使用 shell runner。
解决方案
推荐阅读
- kubernetes - 监控 Kubernetes PODS 上运行的线程数
- firebase - 迁移项目不是 Google Cloud Platform 中的选项
- python - 为什么 matplotlib.pyplot 显示图像,即使 plt.show() 没有被调用?
- angular - 使用角度 9 中的复选框过滤列表
- python - 如何使用 selenium 和 python 在同一个 chrome 浏览器窗口中打开一个新选项卡
- ios - swift 4中格式化日期的问题
- python - Python:在用户输入中捕获 IndexError
- java - 发布 TcpConnectionOpenEvent 或 TcpConnectionOpenEvent 失败,Dispatcher 传递消息失败
- inno-setup - 如何使用 inno setup 编译器将整个文件夹安装到用户 Documents 文件夹?
- reactjs - Gatsby Keycloak 集成