gitlab

Jenkins+gitlab+maven持续集成

放肆的年华 提交于 2019-12-30 01:46:53
https://blog.csdn.net/tq08g2z/article/details/79718425 https://www.jianshu.com/p/3507d8b2ac87 报错用下面解决 https://blog.csdn.net/xukangkang1hao/article/details/80756085 https://blog.csdn.net/cdnight/article/details/81078191 很全面解决各种问题,ssh登不上问题 结合上面三篇做成的 大致流程如下 1、 安装环境 192.168.0.76 jenkins git maven JDK 192.168.0.74 gitlab 192.168.0.72 tomcat JDK 2、配置工具 git maven JDK 这三个工具配置到 jenkins的 “全局工具配置” 里面 如何找路径:系统管理-全局工具配置 3、连接gitlab,gitlab的url写到 jenkins项目配置里面 的git 选项 4、创建项目配置项目 5、编写pom文件开始构建 来源: https://www.cnblogs.com/effortsing/p/10013447.html

Phabricator,gerrit,gitlab code review方式对比

帅比萌擦擦* 提交于 2019-12-29 18:24:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CR方式\ 对比项目 Phabricator Differential Phabircator Audit Gerrit Gitlab cr类型 Pre-commit Review Post-commit Review Post-commit Review Post-commit Review cr操作 通过命令行工具Arcanist提交diff自动生成Review Request。 一次完整的review流程如下: 1、新建分支:feature01 2、提交代码,执行命令: arc diff origin/dev 3、在打开的notepad 界面中,填写 Test Plan,Reviewers,Subscribers 4、打开命令行显示的url:http://phabricator.tools.vipshop.com/D35 页面中进行review 5、代码提交人查看review结果,修改代码后,直接提交代码到远程分支 通过将仓库托管在Phabircator中,通过Herala的方式配置规则强制Code Review 需要将仓库url改为Gerrit url。Gerrit通过hock的方式将修改同步到远程的gitlab仓库。review流程如下: 1、修改代码后,提交到Gerrit 2

How to link folder from a git repo to another repo?

安稳与你 提交于 2019-12-29 11:03:57
问题 I want to create a public repo to put some sample files from my main repo (private). Is there any way to soft link few folders from a git repo to another git repo? 回答1: Then you should use submodules for this task. Submodule are different git repositories under the same root. This way you can manage 2 different project at folder level inside the root repository Submodules allow foreign repositories to be embedded within a dedicated subdirectory of the source tree, always pointed at a

How to link folder from a git repo to another repo?

。_饼干妹妹 提交于 2019-12-29 11:03:46
问题 I want to create a public repo to put some sample files from my main repo (private). Is there any way to soft link few folders from a git repo to another git repo? 回答1: Then you should use submodules for this task. Submodule are different git repositories under the same root. This way you can manage 2 different project at folder level inside the root repository Submodules allow foreign repositories to be embedded within a dedicated subdirectory of the source tree, always pointed at a

How can I pass artifacts to another stage?

筅森魡賤 提交于 2019-12-29 10:46:27
问题 I'd like to use GitLab CI with the .gitlab-ci.yml file to run different stages with separate scripts. The first stage produces a tool that must be used in a later stage to perform tests. I've declared the generated tool as artifact. Now how can I execute that tool in a later stage job? What is the correct path, and what files will there be around it? For example the first stage builds artifacts/bin/TestTool/TestTool.exe and that directory contains other required files (DLLs and others). My

gitlab 5.2 can clone and push by http, but can't clone or push by ssh

北城余情 提交于 2019-12-29 07:56:09
问题 I have setup my gitlab server behind a route, and I have mapped my ssh port to 50000 in the server. the gitlab port is 50001.Then I create a test project and try to clone it in another machine,it's ok when I use http. git remote add origin http://myrouteaddress:50001/user/test.git but when I try to test it use ssh, it failed with git remote add origin ssh://git@myrouteaddress:50000/user/test.git fatal: The remote end hung up unexpectedly I have test my ssh setting with ssh -vT git

How do I generate new ssh-key for my new gitlab account?

你说的曾经没有我的故事 提交于 2019-12-29 04:55:20
问题 I have two Gitlab accounts. On my old account I added an ssh-key that is located in ~/.ssh/id_rsa.pub on my computer. Now I want to add another ssh-key for my new Gitlab account. How do I do this without having the ssh-keys conflict? 回答1: I would recommend a second key, for now without passphrase: ssh-keygen -t rsa -C "your_email@example.com" -P "" -q -f ~/.ssh/gitlab_rsa That will create (without any prompt) ~/.ssh/gitlab_rsa (private key) and ~/.ssh/gitlab_rsa.pub (public key) You need to

How do I generate new ssh-key for my new gitlab account?

旧时模样 提交于 2019-12-29 04:55:13
问题 I have two Gitlab accounts. On my old account I added an ssh-key that is located in ~/.ssh/id_rsa.pub on my computer. Now I want to add another ssh-key for my new Gitlab account. How do I do this without having the ssh-keys conflict? 回答1: I would recommend a second key, for now without passphrase: ssh-keygen -t rsa -C "your_email@example.com" -P "" -q -f ~/.ssh/gitlab_rsa That will create (without any prompt) ~/.ssh/gitlab_rsa (private key) and ~/.ssh/gitlab_rsa.pub (public key) You need to

Gitlab,Mac下生成SSH Key

落爺英雄遲暮 提交于 2019-12-27 23:46:28
git是分布式的代码管理工具,远程的代码管理是基于ssh的,所以要使用远程的git则需要ssh的配置。简单的说,Git - 版本控制工具;Github是一个网站,提供给用户空间创建git仓储,保存用户的一些数据文档或者代码等;GitLab是基于Git的项目管理软件   首先,使用代码管理工具把本地的代码上传到服务器时需要加密处理,加密传输的算法有很多种,git可使用rsa,rsa要解决的一个核心问题是,如何使用一对特定的数字,使其中一个数字可以用来加密,而另外一个数字可以用来解密。这两个数字就是你在使用git和github,gitlab的时候所遇到的public key也就是公钥以及private key私钥。 其中,公钥就是那个用来加密的数字,这也就是为什么你在本机生成了公钥之后,要上传到github的原因。从github发回来的,用那公钥加密过的数据,可以用你本地的私钥来还原。如果你的key丢失了,不管是公钥还是私钥,丢失一个都不能用了,解决方法也很简单,删除原有的key,重新再生成一次,然后在github.com里再设置一次就行在个人电脑生成ssh密钥后,会同时生成一个公开密钥和一个私有密钥,默认情况下在用户主目录下的.ssh目录中,密钥为id_rsa,公开密钥为id_rsa.pub。 密钥和公开密钥是共同使用的,协同开发中,一般会将公钥配置在服务器中,这样方便经常登录

CentOS7上GitHub/GitLab多帐号管理SSH Key

放肆的年华 提交于 2019-12-27 23:46:10
由于公司团队使用 GitLab 来托管代码,同时,个人在 Github 上还有一些代码仓库,可公司邮箱与个人邮箱是不同的,由此产生的 SSH key 也是不同的,这就造成了冲突 ,文章提供此类问题的解决方案:如何在一台机器上面同时使用 Github 与 Gitlab 的服务? 生成GitHub/GitLab 的 SSH Key $ ssh-keygen -t rsa -f ~/.ssh/id_rsa_github -C "123456@qq.com" $ ssh-keygen -t rsa -f ~/.ssh/id_rsa_gitlab -C "admin@example.com" 检查key是否生成,执行下面的命令,有 id_rsa_github 和 id_rsa_gitlab 以及他们的公钥文件就是成功了。 $ ls ~/.ssh 添加private key $ ssh-add ~/.ssh/id_rsa_github $ ssh-add ~/.ssh/id_rsa_gitlab 如果执行ssh-add时提示 "Could not open a connection to your authentication agent" ,可以先执行命令: $ ssh-agent bash ,然后再运行ssh-add命令。 # 可以通过 ssh-add -l 来确私钥列表 $ ssh