gitlab

Jenkins: Can't send zip archive via email

泄露秘密 提交于 2019-12-24 09:28:20
问题 I want to fetch project source code from GitLab, archive it and send it via email. Jenkinsfile: def gitlabRepo = 'http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git' deleteDir() dir('koshcheck-copy') { stage 'Fetch' def curdir = pwd() echo curdir git url: "${gitlabRepo}", branch: 'master' stage 'Archive' zip archive: true, dir: './src', glob: '', zipFile: 'src.zip' def savedZip = archive 'src.zip' echo savedZip stage 'Notify' emailext ( to: 'roman.skaskevich@gmail.com',

Gitlab CI job succeeds before mocha tests are run

天大地大妈咪最大 提交于 2019-12-24 08:18:15
问题 I found that my Gitlab jobs are succeeding and ending before the actual test is run. First, I installing the required dependencies for my app, then I call the mocha commands, but the job succeeds before there is any output from them. My .gitlab-ci.yml: image: node:lts-alpine stages: - test test: stage: test services: - mongo:latest script: - cd server/ - apk add --update git - apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python - npm install --quiet node-gyp -g - npm install

docker 搭建自己的github

空扰寡人 提交于 2019-12-24 08:16:10
github 搭建: 自己搭建一个github网站(仓库)   daocloud:公共hub搜索git下载github镜像   docker pull gitlab/gitlab-ce:8.7.0-rc3.ce.0 \下载github镜像。   测试容器:我是把他的端口设置映射到主机的3280,因为的80端口在搭建node项目的时候,已经被占用。   docker run --rm -it -p 3280:80 -p 3222:22 06fefa4a9183 \   测试github ,访问端口3280 看看了github页面,让你去改密码,改吧。。。然后各种操作。   exit退出容器,github就被删除了。 正式开始:   docker run \   -d \   --hostname wqd.github \ 服务主机名   --name github \容器服务名   --restart always \ 设置一直启动   -p 3380:80 \ 映射http端口   -p 3322:22 \ 映射ssh端口   -p 3443:443 \ 映射 https端口(好像是哈。)   -v /srv/gitlab/config:/etc/gitlab \ 映射github的配置目录   -v /srv/gitlab/logs:/var/log/gitlab \

gitlab服务器邮箱配置

余生长醉 提交于 2019-12-24 08:13:33
如想用 SMTP 代替 Sendmail 发送email,添加如下相应邮箱服务商的配置到 /etc/gitlab/gitlab.rb , 然后运行 gitlab-ctl reconfigure 使修改生效。 omnibus-gitlab还提供了 测试发送邮件功能 。 本文后面有一些常用的 SMTP配置示例 ,可以参考下。前往 QQ企业邮箱配置 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.server" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "smtp user" gitlab_rails['smtp_password'] = "smtp password" gitlab_rails['smtp_domain'] = "example.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_openssl_verify_mode'] = 'peer' # 如果你使用的SMTP服务是默认的 'From:gitlab

gitlab搭建后邮件服务设置

♀尐吖头ヾ 提交于 2019-12-24 08:13:17
按照官网配置会有坑 官方详解邮件服务配置 1. 配置文件位置/etc/gitlab/gitlab.rb 以腾讯企业邮箱为例其它邮箱大同小异 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.exmail.qq.com" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "邮箱地址" gitlab_rails['smtp_password'] = "password" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'] = true gitlab_rails['smtp_domain'] = "exmail.qq.com" gitlab_rails['gitlab_email_from'] = '邮箱地址' 端口号实际测试是465,gitlab给出的是587 2.更新配置 gitlab-ctl reconfigure (测试发现控制台调试第四步生效了,但是页面发送邮件并没有立即生效) 3.重启服务 gitlab-ctl

Approach for using GitLab-CI for complex builds

戏子无情 提交于 2019-12-24 07:27:32
问题 I'm new to continuous integration. I'm interested in systems that would be able to test if the changes that I made to a code break the compilation of the code on a list of different build types. Properties of code (Which I will call CodeA): 1.) Has dependencies to numerical libraries like SUNDIALS and PETSC 2.) Has dependencies on two other codes (CodeB CodeC) which themselves have dependencies to things like HDF5, MPI, etc. Is it feasible to use the CI feature of GitLab to set up a system

Gitlab runner Container hostname

大兔子大兔子 提交于 2019-12-24 07:08:33
问题 When i start a build in gitlab ci (docker executer) its creating container with name "runner-0fa22293-project-174-concurrent-0-postgres" In this what does "0fa22293-project-174-concurrent-0" represent ? What is the naming convention used here? 回答1: I believe the format is as follows: runner-<token>-project-<project ID>-concurrent-<concurrent job #> <token> is the first 8 characters of the Runner Token for the CI runner that is running the build. <project ID> is the ID of the project. The is

Fabric: Integrating service hook GitLab fails with HTTP 308

你。 提交于 2019-12-24 04:41:21
问题 I tried integrating my GitLab Account with Fabric using the respective service hook. I used these parameters: Your GitLab URL: https://gitlab.com/ Your GitLab Namespace/Project: my projectname Your GitLab Private Token: New Personal Access Token created in GitLab User settings -> Access Tokens Entering these values I get a Could not access project "my projectname" - HTTP status code: 308 error I also tried changing the GitLab URL to point directly at my project, then I get a 404. What am I

How do I migrate a SVN repository with many projects and common libraries to Git/Gitlab?

时间秒杀一切 提交于 2019-12-24 03:16:56
问题 We're contemplating a move from SVN to Git/Gitlab but I'd like some advice from anyone who's done this move before as to which of the two following workflows would work best for us or whether there is a better way to do this. Our SVN repository currently looks something like this: \tags \product1_v2 \product_1 \common \product2_v1 \trunk \product_1 \product_2 \common From what I've read, the correct way to use git would be to break product_1 , product_2 and common into separate repositories.

Gitlab repository does not exists issue

时光总嘲笑我的痴心妄想 提交于 2019-12-24 03:06:05
问题 Facing issue with gitlab repository not available. When accessing project form gitlab page it shows below error No repository The repository for this project does not exist. This means you can not push code until you create an empty repository or import existing one. When check over project details from root login below is problem Project info: Name: app Namespace: Administrator Owned by: Administrator Created by: Administrator Created on: May 20, 2016 9:08am http: http://192.168.1.123/root