我对 jenkins docker 集成有疑问
I've a problem with jenkins docker integration
我有一个 gitlab 容器,我在本地有一个 jenkins 容器。我可以配置CI,但是我无法解决cd。我想当我将代码推送到 repo 时,jenkins 在 docker 本地容器中构建我的 Blazor Server App 解决方案。
你能帮帮我吗?
像这样设置 Gitlab webhook:https://docs.gitlab.com/ee/user/project/integrations/webhooks.html
使用 jenkinsfile 中的必要信息设置 Jenkins 管道,如下所示:https://www.jenkins.io/doc/book/pipeline/jenkinsfile/
Gitlab webhook 应该向本地 jenkins 容器发送请求以执行管道。您需要确保在容器和主机计算机之间打开并链接了适当的端口。
我有一个 gitlab 容器,我在本地有一个 jenkins 容器。我可以配置CI,但是我无法解决cd。我想当我将代码推送到 repo 时,jenkins 在 docker 本地容器中构建我的 Blazor Server App 解决方案。
你能帮帮我吗?
像这样设置 Gitlab webhook:https://docs.gitlab.com/ee/user/project/integrations/webhooks.html
使用 jenkinsfile 中的必要信息设置 Jenkins 管道,如下所示:https://www.jenkins.io/doc/book/pipeline/jenkinsfile/
Gitlab webhook 应该向本地 jenkins 容器发送请求以执行管道。您需要确保在容器和主机计算机之间打开并链接了适当的端口。