gitlab

How to sync Azure Devops Repo with Gitlab

久未见 提交于 2021-01-29 09:56:07
问题 We are using Azure Devops repo for some of our development needs. We are also using gitlab as our main source control. I want to keep my gitlab repo in sync with Azure repo. That is whenever some change is committed in Azure Repo, it should automatically flow to Gitlab. We are using GitLab CE, hence mirroring Pull option is not available 回答1: I think you can try to use Command Line Script task in build pipeline, and then push the update to gitlab via the git command as follow shown. git clone

Merging a merge request using Gitlab API commands

大城市里の小女人 提交于 2021-01-29 07:25:41
问题 I'm trying to merge a merge request using the gitlab api and following is what I'm doing using groovy, but I keep hitting errors, I'm pretty new to this so any help is greatly appreciated! def MRUrl = "https://gitlab.domain.com/api/v4/projects/project_name/merge_requests/113/merge" def post = new URL(MRUrl).openConnection(); post.setRequestMethod("PUT") post.setDoOutput(true) post.setRequestProperty("Private-Token", "${Key}") post.getOutputStream().write(message.getBytes("UTF-8")); def

Hello world with gitlab ce docker container running on local ubuntu

不想你离开。 提交于 2021-01-29 06:43:50
问题 I would like to run the docker image for gitlab community edition locally on my ubuntu laptop. I am following this tutorial. Currently there i already another app running on localhost so I changed the ports in docker -compose. What I currently have: I'm in a directory I created called 'gitlab_test'. I have set a global variable per the instructions echo $GITLAB_HOME /srv/gitlab . I pulled the ce gitlab image docker pull store/gitlab/gitlab-ce:11.10.4-ce.0 Then, in the gitlab_test directory I

How to run build stage in gitlab pipeline on branch creation?

独自空忆成欢 提交于 2021-01-29 05:36:42
问题 I have a gitlab pipeline which has two stages as shown below: Below is my current .gitlab-ci.yml : stages: - build - push build: image: docker.repo.test.data/stuff/something:latest variables: LEGACY_VERSION: 10000 before_script: - export CI_PIPE_ID=`expr $CI_PIPE_ID + $OLDER_VERSION` script: - echo "Building Project" - ls -lrth - ./build-project push: stage: push image: docker.repo.test.data/stuff/something:latest only: - master script: - some stuff here In my build stage I try to build my

Terraform - access root module script from child module

限于喜欢 提交于 2021-01-29 04:04:42
问题 I have a ROOT_MODULE with main.tf : #Root Module - Just run the script resource "null_resource" "example" { provisioner "local_exec" { command = "./script.sh" } and script.sh : echo "Hello world now I have another directory elsewhere where I've created a CHILD_MODULE with another main.tf : #Child Module module "ROOT_MODULE" { source = "gitlabURL/ROOT_MODULE" } I've exported my planfile: terraform plan -out="planfile" however, when I do terraform apply against the planfile, the directory I am

Cannot pass artifacts between jobs in GitLab CI/CD

╄→гoц情女王★ 提交于 2021-01-28 13:53:41
问题 I have a GitLab project and my .gitlab-ci.yml looks like this: stages: - build - deploy image: registry.gitlab.com/myuser/myproj/ubuntuxenial:v1 before_script: - cd /home - mkdir docker - cd docker - git clone "https://xxx@github.com/myuser/myproj.git" repo - cd repo render_site: stage: build artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME--$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" expire_in: 1 week paths: - home/docker/repo/ script: - Rscript build.R ... I have provided the essential parts of

How to push tag to a branch in a CI?

限于喜欢 提交于 2021-01-28 11:16:34
问题 I want to add a manual jobs to my Pull Request to tag my source branch when i run the manual jobs. This tag will trigger a build on my bitrise configuration. However, when i'm trying to push my tag, i am facing this issue. NB: The branch i'm trying to push my tag to is NOT protected. $ git checkout $CI_COMMIT_REF_NAME Switched to a new branch 'feature/gitlab-ci' Branch feature/gitlab-ci set up to track remote branch feature/gitlab-ci from origin. $ git tag build-bitrise $ git push --tags

Git returns 'failed to run repack' and 'inflate returned' errors

不羁岁月 提交于 2021-01-28 10:48:23
问题 I am facing a problem with a Git repository stored on GitLab. It seems to be a repository issue only affecting this specific repository, as all other projects hosted on GitLab are working fine. It seems I can personally push, pull, and checkout branches using GitKraken, but when I try to pull from Git Bash I get the following: $ git pull Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. error: Could not read

Can’t push to Gitlab registry | Quarkus - Jib build

心已入冬 提交于 2021-01-28 10:22:30
问题 I'm currently developing Quarkus applications and need therefore a CI Pipeline + Container Registry. As containerization through docker isn't working (docker daemon - priviliged mode) I want to use Jib, which is already supported by Quarkus. Command in Pipeline: - mvn clean package -Dquarkus.container-image.push=true -Dquarkus.container-image.registry="https://$registry" -Dquarkus.container-image.username=$username -Dquarkus.container-image.password=$deployToken -Dquarkus.container-image.name

Can’t push to Gitlab registry | Quarkus - Jib build

我与影子孤独终老i 提交于 2021-01-28 10:20:18
问题 I'm currently developing Quarkus applications and need therefore a CI Pipeline + Container Registry. As containerization through docker isn't working (docker daemon - priviliged mode) I want to use Jib, which is already supported by Quarkus. Command in Pipeline: - mvn clean package -Dquarkus.container-image.push=true -Dquarkus.container-image.registry="https://$registry" -Dquarkus.container-image.username=$username -Dquarkus.container-image.password=$deployToken -Dquarkus.container-image.name