简体   繁体   English

使用Jenkins和GitLab自动构建

[英]Automatic build with Jenkins and GitLab

I deploy Jenkins and GitLab using Docker (locally), both are connected with each other. 我使用Docker(本地)部署Jenkins和GitLab,两者相互连接。

  • One of the problems ( not very important ) is with SSH. 问题( 不是很重要 )之一是SSH。 I create ssh key inside Jenkins container and set it to GitLab, but when Jenkins try to checkout the repository throws "Permission Denied". 我在Jenkins容器中创建ssh密钥并将其设置为GitLab,但是当Jenkins尝试检出存储库时,抛出“ Permission Denied”。 So, executing Jenkins bash, try to run git command and what's happen? 因此,执行Jenkins bash,尝试运行git命令,会发生什么? GitLab container needs a password for access. GitLab容器需要密码才能访问。 Searching, and trying to do as a virtualized server, no works. 搜索并尝试作为虚拟服务器,没有任何效果。 Whatever, I solved using user and password (I don't like, but works). 无论如何,我使用用户名和密码解决了问题(我不喜欢,但可以使用)。
  • The important problem. 重要的问题。 I don't have any problem creatin, and running, a job (using pipelines). 我在创建和运行作业(使用管道)方面没有任何问题。 The job download the world from GitLab and send the result to GitLab. 作业从GitLab下载世界并将结果发送到GitLab。 The problem, after add a webhook with Jenkins URL to GitLab, push something but nothing happens in Jenkins, not trigger the job. 在将具有Jenkins URL的Webhook添加到GitLab之后,问题出了什么,但在Jenkins中什么也没有发生,但没有触发工作。

Anyone can help me? 有人可以帮助我吗?

Thanks!! 谢谢!!

Is your webhook working correctly ?? 您的webhook是否正常工作? are you able to send/receive request and response, if not refer to Github webhook URL config issue? 如果不参考Github Webhook URL配置问题 ,是否能够发送/接收请求和响应 How to fix it? 如何解决?

When you push does it trigger a request ? 当您推送时会触发请求吗? can you try hitting it with postman if you do have a request. 如果您有要求,可以尝试与邮递员联系吗? If you can provide more information, then it will be helpful :) 如果您可以提供更多信息,那将是有帮助的:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM