Questions tagged [gitlab-ci]
GitLab CI is a continuous integration server from GitLab.
gitlab-ci
8,744
questions
-1
votes
0
answers
16
views
How to access the server through SSH without asking for password? [duplicate]
I have the following command:
ssh -o StrictHostKeyChecking=no [email protected]... "cd /var/www/api && git pull origin master"
I want to access it (named "destination server&...
0
votes
0
answers
16
views
yq utility fails with error: unknown shorthand flag: 'c' in -c
I am trying to use yq utility to parse for validation values.yaml files, the resources block in particular. Below is a simple gitlab ci pipeline that I created to test yq utility
stages:
- test
...
0
votes
1
answer
21
views
How do you browse a GitLab CI build after it fails?
Situtaion
I push code to my repo on my self-hosted GitLab server.
It triggers my runner to run my CI job.
The CI job fails.
Now I want to go investigate the scene of the crime.
Question
How can I ...
0
votes
0
answers
9
views
Is it possible to define multiple "to be continuous" build templates using CI/CD component?
I know that it is possible to use parallel matrix jobs to handle multiple projects using the same template with the include:project syntax. An example is given here : https://stackoverflow.com/a/...
0
votes
0
answers
26
views
Why gitlab ci fails with no error and how can I fix it?
Here is the content of .gitlab-ci.yml file:
stages:
- deploy
deploy_job:
stage: deploy
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )...
0
votes
0
answers
13
views
gitlab runner kubernetes spin up pod with multiple containers
Just like in k8s, we can spin up a pod with multiple containers (docker images) and we can share the volume, similar to this, can we achieve the similar in gitlab runner when spinning up a pod with ...
0
votes
2
answers
31
views
Gitlab pipeline does not have pip installed
I have a gitlab pipeline split in two jobs but unfortunately the second job complains /bin/sh: eval: pip: not found.
Below is the .gitlab-ci.yml file.
stages:
- build
- test
default:
image: ...
1
vote
1
answer
45
views
How to run a bash script using bash using Docker-in-Docker
I have a bash script that I use to build my Docker images and I'm trying to set up my GitLab CI so that it automatically builds the image whenever I push a tag.
This is my .gitlab-ci.yml file:
stages:
...
1
vote
0
answers
29
views
Windows 10 PowerShell: allow service interact with desktop (non system user)
The problem is: I have remote desktop, I have set up gitlab runner on it. I am running GUI application (with OpenGL) within my gitlab runner service.
When I am using System User for gitlab runner my ...
0
votes
0
answers
27
views
need to add the job of one stage from another stage, with artifact files
I want to run the unit-test script code into sonar-app stage and artifact files too , so I want to call the unit-test job into my sonar-app, how to call any one please suggest me solution, Now I am ...
0
votes
0
answers
41
views
Deploying code from Gitlab repository into remote server
I'm trying to deploy code from a Gitlab repository into remote servers.
Running the pipeline, a Permission denied error shows up
$ ssh $SSH_USER@$SSH_HOST "cd $WORK_DIR && git checkout $...
0
votes
1
answer
25
views
Factor out common command line options in gitlab?
I have a simple c++ application that I'd like to build on both Linux and Windows. It seems to be working nicely using cmake.
Now I'd like to cleanup my gitlab-ci.yml file and factor out the common ...
-1
votes
0
answers
25
views
Gitlab CI, OpenGL process
I have a process within my test which uses OpenGL. This test fails. I have found out (printing out wglinfo) that the test triggered by gitlab runner Windows service uses default OpenGL 1.1.0 which is ...
1
vote
2
answers
30
views
how to get branch name in Gitlab ci/cd
i have a gitlab ci config like this
simple build :
stage: build
script:
# i want to echo branch name here
rules :
- if: $CI_COMMIT_TAG
i want to echo branch name as a variable
i tried ...
0
votes
0
answers
16
views
How to Integrate End-to-End Tests into GitLab CI/CD Pipeline? [closed]
I'm looking for advice on the best way to integrate end-to-end (E2E) tests into our existing GitLab CI/CD pipeline. I am lost at this point. I'm doing this for the first time and I'm unsure how to ...