gitlab-ci

GitLab CI - avoid build when adding tag

偶尔善良 提交于 2020-12-30 02:00:20
问题 How do I prevent a gitlab ci pipeline being triggered when I add a git tag? I'm running this command locally (as opposed to within a gitlab-ci job) git tag -a "xyz" and then pushing the tag; and this triggers various pipelines. I want to exclude some of those pipelines from running. I'm trying variations on ideas from questions such as this; that question is using only , I'm wanting to exclude, so I'm trying except. The answers there have two variants, one with refs one without. build: # ...

GitLab CI - avoid build when adding tag

南楼画角 提交于 2020-12-30 01:59:31
问题 How do I prevent a gitlab ci pipeline being triggered when I add a git tag? I'm running this command locally (as opposed to within a gitlab-ci job) git tag -a "xyz" and then pushing the tag; and this triggers various pipelines. I want to exclude some of those pipelines from running. I'm trying variations on ideas from questions such as this; that question is using only , I'm wanting to exclude, so I'm trying except. The answers there have two variants, one with refs one without. build: # ...

GitLab CI - avoid build when adding tag

偶尔善良 提交于 2020-12-30 01:59:07
问题 How do I prevent a gitlab ci pipeline being triggered when I add a git tag? I'm running this command locally (as opposed to within a gitlab-ci job) git tag -a "xyz" and then pushing the tag; and this triggers various pipelines. I want to exclude some of those pipelines from running. I'm trying variations on ideas from questions such as this; that question is using only , I'm wanting to exclude, so I'm trying except. The answers there have two variants, one with refs one without. build: # ...

GitLab CI - avoid build when adding tag

戏子无情 提交于 2020-12-30 01:58:31
问题 How do I prevent a gitlab ci pipeline being triggered when I add a git tag? I'm running this command locally (as opposed to within a gitlab-ci job) git tag -a "xyz" and then pushing the tag; and this triggers various pipelines. I want to exclude some of those pipelines from running. I'm trying variations on ideas from questions such as this; that question is using only , I'm wanting to exclude, so I'm trying except. The answers there have two variants, one with refs one without. build: # ...

Gitlab CI in multiple platforms simultaneously

本小妞迷上赌 提交于 2020-12-29 12:34:32
问题 I have a C++ project that is compiled and packaged for multiple OS (Linux, Windows, MacOS) as well as multiple CPU architectures (i386, x86_64, arm, Aarch64) For this I'm using Jenkins to grab the source code and run the build script in parallel on each system. It's a simple working solution, since my build script deals with the system differences. Now I'm looking into Gitlab CI/CD, and it has many things I find appealing ( being able to keep the build script as part of the repository, very

How to get commit date and time on GitLab CI

北城余情 提交于 2020-12-29 06:55:49
问题 Actually I have a need to get a timestamp of my commit in GitLab CI. Alredy have tested the official documentation of GitLab CI Variables here: https://docs.gitlab.com/ee/ci/variables But there are only commit variables for CI_COMMIT_SHA The commit revision for which project is built CI_COMMIT_TAG The commit tag name. Present only when building tags. Is there a way to achieve this? Need to add these values to variables. My prefered way would be to add it to the variables section. job:

integrate puppeteer in gitlab with gitlab-ci.yml

こ雲淡風輕ζ 提交于 2020-12-29 05:32:43
问题 Im currently working on e2e test in Chrome Puppeteer. I am at the stage where it would be ideal to integrate my tests in the development process. What I want to accomplish is the following: my tests run automated before every deploy to production. If they succeed deployment goes through, if they fail deployment is canceled. I use a pipeline on gitlab to automate my deployment process. So my main question is how can I integrate my puppeteer tests into the gitlab-ci.yml file? 回答1: This might be

Role of docker-in-docker (dind) service in gitlab ci

落爺英雄遲暮 提交于 2020-12-27 07:48:56
问题 According to the official gitlab documentation, one way to enable docker build within ci pipelines, is to make use of the dind service (in terms of gitlab-ci services). However, as it is always the case with ci jobs running on docker executors, the docker:latest image is also needed. Could someone explain: what is the difference between the docker:dind and the docker:latest images? (most importantly): why are both the service and the docker image needed (e.g. as indicated in this example,

Gitlab CI :- How to share the artifacts (apks or build) via Email in Gitlab?

拜拜、爱过 提交于 2020-12-27 05:41:04
问题 I am getting the artifacts (apks) on successful operation of pipeline in Gitlab . Is there any ways to send the artifacts (apks) on the Email address after successful operation in gitlab. Right now i need to do download artifacts manually. Is there any way to send the artifacts on Email after successfully build creation.Thanks 回答1: I think there is no way to send artifacts via email for Gitlab-CI. You can send the mail on success or failure or pipeline. Refer the same question here: Send

Gitlab CI :- How to share the artifacts (apks or build) via Email in Gitlab?

空扰寡人 提交于 2020-12-27 05:37:41
问题 I am getting the artifacts (apks) on successful operation of pipeline in Gitlab . Is there any ways to send the artifacts (apks) on the Email address after successful operation in gitlab. Right now i need to do download artifacts manually. Is there any way to send the artifacts on Email after successfully build creation.Thanks 回答1: I think there is no way to send artifacts via email for Gitlab-CI. You can send the mail on success or failure or pipeline. Refer the same question here: Send