Category "gitlab-ci"

unable to push git tags in gitlab ci pipeline

In my gitlab ci pipeline, I want to push a tag wherever pipeline run for the master branch. But the issue is that I am unable to push the tag on the repository.

Simulate a pipeline got Error: Request failed with status code 500

I’am trying to create my first pipeline so i followed to recommendation to validate my …gitlab-ci.yml file and then simulate the pipeline but i&rsq

Cypress test not finding element when ran in Gitlab CI

I'm using Cypress for automated testing. An app built in React with Next.js The tests pass locally with cypress open and cypress run but fail within GitLab CI.

GitLab - dont wait for all jobs in the previous stage to be finished

In my pipeline, the two last stages are Deploy and Qa-test. It look like this: Now I need to run integration-tests automatically when the deploy-stag job is fi

How to auto deploy Docker Image on own server with GitLab?

I am trying to Google it for few hours, but can't find it. I have Java/Spring application (+MySQL if it matters) and I am looking to create CI for that. I know

How to merge rules on a GitLab CI Job

Let's suppose I have this hidden "base" job. .base_job: rules: - if: "$CI_COMMIT_TAG" when: never - if: '$CI_PIPELINE_SOURCE == "web"' I'd like

I am trying to access a gitlab yaml from another project within same group in my main project

Code: include: - project: 'testing-parent-pipeline/Testing-child-push' file: 'script/test.yml' I am getting this error Project testing-parent-pipeline/T

Gitlab Runner Image with GCP credentials

I am trying to teach my Gitlab Runner image to get custom builder images from my private Docker Registry (GCR running in the Google Cloud). What did not work o

Can we combine jobs into one in .gitlab ci/cd yaml file?

This is ci/cd yaml file I using services: - docker:19.03.11-dind workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_

Activate test coverage for python code on Gitlab

I'm trying to create a .gilab-ci.yml step to activate the gitlab's test coverage with pytest + pytest-cov. Current unsuccessful snippet I've tried: .only-defaul

Gitlab Shell Script Permission Denied

I am running a simple shell script with Gitlab CICD and I am getting Permission denied. Kindly suggest When I do chmod +x test.sh it says operation not permitte

gitlab ci: "No files to upload" for job artifacts

This is my first time trying to generate a gitlab-ci job artifact. My ci script generates a csv file that I want to download as an artifact in the job. The yaml

Is it possible to only trigger a Pipeline if certain files are changed?

I have a project with a working GitLab-CI configuration, but I only want to create and execute a pipeline, when one of my config files are changed. Is there a w

Why did my job get stuck while trying local Gitlab-runner?

I got this Runner has never contacted this instance,what does it mean? I can confirm that I have one. Available specific runners My .gitlab-ci.yml stages:

Is it possible to have gitlab CI trigger another pipeline?

I'm new to gitlab CI so I'm still trying to get my head around it but I'm wondering if it's possible to do the following? Developers work in REPO A QA work in

docker executor vs docker dind image

I am a newbie in gitlabci. I want to understand why do we need docker dind image in order to build a docker image in GitLab CI jobs. Why can't we use the docker

Exporting environment variables from one stage to the next in GitLab CI

Is there a way to export environment variables from one stage to the next in GitLab CI? I'm looking for something similar to the job artifacts feature, only for

How to limit a job in gitlab ci to a tag matching a pattern?

I want to be able to trigger a deployment to a special server every time a tag matching a pattern is pushed. I use the following job definition: # ... deploy

Gitlab-CI with Docker executor /usr/bin/bash: line 90: git: command not found

I have a local GitLab server and gitlab-ci runner with Docker executor. I want to use gitlab-ci to build (for the first stage) my Maven project. Since I use bui

Script command using ":" causing error in .gitlab-ci.yml execution

Below my .gitlab-ci.yml file: image: docker:latest services: - docker:dind stages: - deploy_dev_env Deploy DEV Environment: stage: deploy_dev_e