Category "gitlab-ci"

Gitlab CICD: use functions inside gitlab-ci.yml

I have a .gitlab-ci.yml file which allows needs to execute the same function for every step. I have the following and this works. image: name: hashicorp/terra

Using GitLabRunner to execute GUI tests on windows with permanent active user session

i'm having issues to get a permanent active user-session on my virtual machine to execute gui tests developed with the functional testing tool Ranorex Studio vi

How do I get parts of my GitLab CI Job Log to fold when viewed on the GUI?

I have several GitLab CI Jobs which take a while to run. I already use the before_script and after_script features to break some of the work into sections. I

How to save multiple variables in a apipeline for another job

So I am looking through the gitlab ci documentation for passing variables to other jobs. However, how would I pass more than one? And how would I access more th

Black Duck with Gitlab-CI runner

Im trying to integrate BlackDuck in to a gitlab ci script. Running OpenJDK on Alpine 3.9.2 I get the following error in the logs 2019-10-14 15:19:00 ERROR [ma

How to escape colon with following space in a GItLab CI/CD YAML value?

I have the following line in GitLab CI/CD: script: - echo "Backend image: $BACKEND_IMAGE" But YAML interpreters treat this as an object. Then I googled t

Gitlab-CI: Cross-service communication

I’m currently using Gitlab-CI to test a jboss eap based java application. To be more precise, I’m using Postman’s newman tool to run some REST

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