gitlab

gitlab&&jenkins

六眼飞鱼酱① 提交于 2019-12-16 12:12:32
安装和配置git [root@k8s-node2 ~]# yum install git -y [root@k8s-node2 ~]# git --version git version 1.8.3.1 git config --global user.name "lcx" git config --global user.email "245684979@qq.com" git config --global color.ui "true" 创建版本库 git init git仓库添加文件 git add . #添加文件到缓冲区 git commit -m 'ad three file' git 修改文件名称并提交 git mv file1 file4 git commit -m 'change file name' git的文件对比 git diff file3 #本地目录和缓冲去文件对比 git diff --cached file3 #缓冲区文件和仓库文件对比 实现回退功能 [root@k8s-node2 ~]# git log --oneline 58bea1a add three file fe9e8c2 add two file [root@k8s-node2 ~]# cat file2 456456456 8888888 [root@k8s-node2 ~]#

基于GitLab和Jenkins的持续集成

跟風遠走 提交于 2019-12-14 14:08:56
文章目录 一、GitLab的简单介绍 1.1 Git、GitHub、GitLab三者之间的区别 二、安装GitLab 三、基于GitLab和Jenkins实现持续集成 一、GitLab的简单介绍 GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务。 GitLab使用Ruby语言写成。 GitLab拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 1.1 Git、GitHub、GitLab三者之间的区别 Git 是一个版本控制系统。 用于记录一个或多个文件内容变化,方便我们查阅特定版本修订情况的系统。 GitHub 和 GitLab 都是基于 web 的 Git 仓库 ,使用起来二者差不多,它们都提供了分享开源项目的平台, GitHub 同时提供公共仓库和私有仓库,但如果使用私有仓库,是需要付费的,GitLab相比较 GitHub, 可以创建私人的免费仓库。但是对于开源项目而言,GitHub 依然是代码托管的首选。 二、安装GitLab 安装GitLab的主机<ip=172.25.2.6/server6>必须有大于3G的内存。 1、配置gitlab安装的yum源

Gitlab code quality: where is the report?

孤人 提交于 2019-12-14 00:50:23
问题 On this project: https://gitlab.com/tyvain/parcoursup/tree/master I have a code quality stage: code_quality: stage: code_quality image: docker:stable variables: DOCKER_DRIVER: overlay2 allow_failure: true services: - docker:stable-dind script: - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - docker run --env SOURCE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security

Gitlab branding customisation [closed]

∥☆過路亽.° 提交于 2019-12-13 23:47:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have installed gitlab CE on my linux server. it is running well, now i want to change branding of gitlab and want to put my logo and favicon, also want to change the name "gitlab" is this possible? if yes, let me know how I can do that? 回答1: Yes, this is now possible in the community edition. Simply head to:

gitlab 500 errors in the admin area

[亡魂溺海] 提交于 2019-12-13 23:33:59
问题 How to reproduce: login as admin go into the admin menu click on overview - runners or click save in the settings Result: 500 Error: Whoops, something went wrong on our end. Which system is running? RHEL 7, outbound gitlab with Nginx and passengers Errors: OpenSSL::Cipher::CipherError (): lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt' app/models/concerns/token_authenticatable_strategies/encrypted.rb:55:in `get_token' app/models/concerns/token_authenticatable_strategies/base.rb:27:in

备份docker运行的gitlab

落爺英雄遲暮 提交于 2019-12-13 21:18:14
#!/bin/bash data=$(date "+%Y-%m-%d %H:%M:%S") gitBak='/data/gitlab/data/backups' delFile=`ls -l -crt $gitBak/*.tar | awk '{print $9 }' | head -1` count=`ls -l -crt $gitBak/*.tar | awk '{print $9 }' | wc -l` if [ $count -gt 9 ];then rm $delFile echo "$data -- delete $delFile" >> $gitBak/del_log.txt fi docker exec gitlab gitlab-rake gitlab:backup:create RAILS_ENV=production CRON=1 if [ $? -ne 0 ];then echo "$data -- 脚本执行失败" >> $gitBak/back_log.txt fi 来源: https://www.cnblogs.com/fan-gx/p/12037264.html

GitLab private runner stuck on npm install

孤街浪徒 提交于 2019-12-13 20:23:56
问题 I'm trying to set up a CI pipeline on GitLab.com using a private runner instead of a shared one. The project uses Node, so I'm using a node:6 image. The .gitlab-ci.yml looks like this: image: node:6 stages: - test javascript_tests: stage: test script: - npm install - npm run test:unit when: always The runner stays on "running" stage for about 30 minutes and only then started to output something relevant: npm ERR! fetch failed http://10.252.156.164:4880/@types%2fjsforce/-/jsforce-1.9.2.tgz npm

Using VB.net - pull a file from GitLab

99封情书 提交于 2019-12-13 20:22:14
问题 As the title implies, I'm looking for a way to pull specific file(s) from a private GitLab repo using VB.net (2017). I have an application that I'm writing which will call certain PowerShell scripts. I have a few other users working with me writing the scripts, so we are using GitLab as the repository for these. We want the application to pull the latest version of the scripts from GitLab when the application opens, then from within the app, call the scripts. I have everything done, with the

Configure gitlab with apache2 (or nginx + apache2)

牧云@^-^@ 提交于 2019-12-13 19:57:38
问题 I have installed GitLab in a Ubuntu14.04 server with LAMP. I am aware that GitLab has been designed to work with nginx based servers, but this server has web apps that have been installed over apache2 and I need them. I tried installing GitLab following this tutorial. I used the gitlab_7.7.1-omnibus.5.4.1.ci-1_amd64.deb package. I ended up having the same problem than some of the people who commented (error 502). I tried following this link through the comments to see if I could find any

gitlab ci failing with custom runner

别来无恙 提交于 2019-12-13 17:40:30
问题 I'm trying to create a custom gitlab-runner to run a docker process, following: https://github.com/gitlabhq/gitlabhq/blob/master/doc/ci/docker/using_docker_build.md I tried the second approach in which I registered a runner using: sudo gitlab-runner register -n \ --url https://gitlab.com/ \ --registration-token xxx \ --executor docker \ --description "My Docker Runner" \ --docker-image "docker:stable" \ --docker-volumes /var/run/docker.sock:/var/run/docker.sock However,at gitlab, whenever the