gitlab

unable to run maven build on gitlab dependacy missing but present in maven central

≯℡__Kan透↙ 提交于 2019-12-12 02:26:07
问题 My pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>net.domain.testapp</groupId> <artifactId>config</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>config</name> <description></description> <parent> <groupId>org

send mail to commiter after gitlab CI stage

心已入冬 提交于 2019-12-12 02:18:25
问题 in my .gitlab-ci.yml I have: stages: - test # unit tests - proof # system tests I want after each run send mail to committer how trigger run (in mail i want to have result of run). Could you tell me how should I do it or send me to same example? 回答1: To Bartłomiej Bartnicki. It seems jaxxstorm talked about functionality in GitLab, which you can find by the path: your project -> Settings -> Integrations -> scroll down to the Project services and click by the "Emails on push" link and you will

git commit history lost?

こ雲淡風輕ζ 提交于 2019-12-12 01:28:26
问题 I encountered the following problem: $ git show 0fb108b commit 0fb108b3e564f92e60a14d4da6ab1df32e67a35f Author: user1 <user1@example.com> Date: Thu Apr 16 10:08:01 2015 +0800 update commiit diff --git a/file1.jsp index a6183b1..b07cd04 100644 ... ... But when I submitted the query history of this file, and didn't see the above submit history: $ git log -- file1.jsp ... ... gitlab version: gitlab-7.7.2_omnibus.5.4.2.ci x86_64 git version: git version 1.9.5.msysgit.0 OR Eclipse subgit-2.0.3 OS

GitLab webhooks to deploy master / production

只谈情不闲聊 提交于 2019-12-12 00:28:41
问题 I have set up a gitlab on my server running with Plesk which I use to manage my clients accounts. Some of my clients have special development requests so I thought GitLab would be a great way to resolve a few issues. However. What I need to do is: When I create a git repo for a clients project I add a folder named hooks in the git . directory. and inside that I would like to have a file called site.conf In this Im thinking of something like this: stage_dir=/var/www/vhosts//subdomains/stage.

gitlab迁移实践

[亡魂溺海] 提交于 2019-12-11 22:54:49
因办公室环境网络调整,近期计划将gitlab从内网机房迁移至公有云。迁移过程做了一下简单的记录,希望对各位同行有所帮助。 旧服务器A centos6.9 10.1.2.10 gitlab-ce-8.16.0-ce.0.el6.x86_64 新服务器B centos6.9 192.168.100.10 gitlab-ce-8.16.0-ce.0.el6.x86_64 一、迁移基本思路 1、采购公有云服务器,自带公网IP、加入onlyyou安全组。 2、安全组开放80端口(所有办公网出口、v隧p道n(公))、9000端口(所有办公网出口、v隧p道n(公)、以及Jks、其他测试服公网IP)。 3、搭建同版本Git服务。 4、发布公告,暂停git服务 5、将完整备份导入新Git。 6、利用iptables映射9000端口至3303(iptables -t nat -A PREROUTING -p tcp --dport 9000 -j REDIRECT --to-ports 3303)。(注:9000为之前frp的远程端口,3303为服务器B的ssh端口) 7、DNS解析(git.bd.com):删除办公网DNS的解析记录,修改公网DNS解析记录至服务器B公网IP。 二、操作步骤 2.1、备份 1.备份服务器A中的git数据,具体备份操作命令 [root@serverA ~]#

How to deploy Gitlab project branch to directory

我的梦境 提交于 2019-12-11 18:00:16
问题 I have a Gitlab server (Ubuntu 14.04) where I am trying use it as both a host for my repositories as well as a testing server for my PHP projects. Ideally, I would like to have Gitlab/Git export the "release" branch to /var/www/git/<project-name> when that branch is updated. My Question: How can I export a specific branch in Gitlab, to a specific directory on the localhost, when the branch is updated? I am aware that there are webhooks available in Gitlab, but it seems unnecessary and

Gitlab CI/Docker: ssh-add keeps asking for passphrase

蹲街弑〆低调 提交于 2019-12-11 17:45:11
问题 What I'm currently trying to do, is triggering an script on a remote machine from the Gitlab CI/CD Docker container. The job is configured as follows: stages: - deploy image: maven:3.3.9 server-deploy: stage: deploy allow_failure: false script: ## Install ssh agent - apt update && apt install openssh-client -y - eval $(ssh-agent -s) ## Create SSH key file - "echo \"-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW

Gitlab merge request from forked repository remote through command line not creating any merge commits

不羁岁月 提交于 2019-12-11 17:38:31
问题 I am trying to merge a merge request (Gitlab) from command line. After working on a dummy repository, I came to know that if I have the permission to merge a merge request, I can merge them directly through command line. I started by cloning the upstream repository in my local system. After that, I made a change in my forked repository and created a merge request for the same. While manually trying to merge the request from command line using this approach, I am getting an extra commit which

GitLab Serverless deployment fails due to “nil watch interface”

为君一笑 提交于 2019-12-11 17:22:49
问题 The deployment to a Kubernetes Cluster created in GitLab with default values after specifying stages: - build - deploy build: stage: build image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] only: - master script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE

Convert a simple .md file to a gitlab page

拈花ヽ惹草 提交于 2019-12-11 16:57:57
问题 There are several options for setting up Gitlab pages. Most of them have a lot of awesome tools. But it is not really necessary for us. That's why we wondered if it was possible to convert a .MD (readme.md) file to a single Gitlab page. So we can write in .MD markup. 回答1: I have written a script which converts the md file to html and then uploads it on a host. image: node:4.2.2 variables: HOST: "myhost" USERNAME: "myusername" PASSWORD: "mypassword" pages: stage: deploy script: - npm install