随笔分类 - CI/CD Jenkins
摘要:vi /etc/gitlab/gitlab.rb gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' main: # 'main' is the GitLab 'provider
阅读全文
摘要:解决思路1、首先登录gitlab服务器执行以下命令:sudo gitlab-rails console -e production 2、通过命令查找,确定用户为“root”#以下这两个命令都可以,随便输入一个user = User.where(id: 1).firstuser = User.wher
阅读全文
摘要:https://wiki.wabks.com/pages/191a66/ #1、备份#手动备份$ gitlab-rake gitlab:backup:create#执行完成后会在 /var/opt/gitlab/backups/ 目录下生成压缩包 #2、恢复Gitlab的恢复操作会先将当前所有的数据
阅读全文
摘要:https://www.cnblogs.com/21-forever/p/10949309.html 个人理解: SVN适合领导啊,大家一起在加班,看你进度什么的,git则不必如此,忙完传上来完活。 一、含义: 百度上这样介绍的: Git(读音为/gɪt/。)是一个开源的分布式版本控制系统,可以有效
阅读全文
摘要:GitLab服务器IP地址设置 首先说明一下,我Linux虚拟机的IP地址是192.168.142.134. 1、在GitLab上新建一个项目test_gitlab,刚开始仓库地址是http://localhost/yulei/test_gitlab.git . vi /var/opt/gitlab
阅读全文
摘要:1 - GitLab安装 1.1 信息确认 [Anliven@node102 ~]$ uname -a Linux node102 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Li
阅读全文
摘要:1.高版本的Gitlab无法恢复低版本备份的数据,,,需要注意在b服务器部署和a服务器一样版本的gitlab,部署好环境后开始备份和数据迁移. 查看gitlab版本的命令: gitlab-rake gitlab:env:info 2. 备份原a服务器上的的数据 gitlab-rake gitlab:
阅读全文
摘要:Pipeline流水线脚本样板: pipeline { agent any stages { stage('pull code') { steps { echo 'pull code' } } stage('build project') { steps { echo 'build project'
阅读全文
摘要:URL:https://git-scm.com/download/win 在工程目录里 右键 git bash here git config --global user.name "xinghuarong"git config --global user.email "it@szhuarong.c
阅读全文
摘要:URL:https://git-scm.com/download/win 在代码工程目录里 右键 git bash here git config --global user.name "xinghuarong"git config --global user.email "it@szhuarong
阅读全文