Start only deploy pipeline when tag is pushed
I have the following scipt:
Gitlab: How to pass variable containing special characters to another stage?
In Gitlab, need to pass a variable containing special character “$” to another stage via artifacts.
set same artifacts expire_in for all artifacts of the pipeline in gitlab
Include details about your goal: I wish to set one artifacts expire_in for all artifacts of the pipeline in gitlab, just once, without having to set it per job (multiple times). Describe what I have tried: In my gitlab ci yml file, I have this at the top of the file: default: artifacts: expire_in: 2 […]
Gitlab pipeline: Single approval for 3 stages deploying at same Environment
In a gitlab pipeline, I have 3 jobs from 3 stages for deploying to an environment, eg. staging
environment. In real application, the first stage is bootstrap stack, the second is application stack proposed changes and third stage is apply changes to application stack. All apply changes to staging environment. I have mocked the current pipeline with a test pipeline which is given below. I have when: manual
in the deploy stage
stage’s job and have defined needs
for second stage and the third stage. When pipeline is approved at first stage it also requires approval at other two stages.
Prevent using cached image in GitLab CI
Problem In my GitLab pipeline, I often have a build job that builds a Docker container and pushes it to the GitLab container registry. Importantly, I like to tag the docker images using the branch name so only one image exists per branch. docker build -t registry.gitlab.com/gitlabProject/projectName:$CI_COMMIT_REF_SLUG . docker push registry.gitlab.com/gitlabProject/projectName:$CI_COMMIT_REF_SLUG Later jobs, such as […]
Gitlab Ci – Add approval to run stage
I need to create a gitlab ci pipeline with first stage to send a email about the pipeline run to admins and then only those selected users/admins can run/approve/reject the second stage which actully does the deployment.
GitLab CI: How predefine values for global variables?
I create pipeline with interface choose in dropdown list of some values for our developers
Backup and restore in progress: There is a backup and restore task in progress (PID 19324). Try to run the current task once the previous one ends
I was in the middle of taking a GitLab backup when my shell connection got disconnected. Now, when I attempt to take the backup again, I encounter the error message: “Backup and restore in progress: There is a backup and restore task in progress (PID 19324). Try to run the current task once the previous one ends.” Despite my attempts to terminate the process with PID 19324, it keeps restarting. I’ve also tried restarting the GitLab service, but I still receive the same error. It’s been approximately 2.5 hours, and I’m still encountering the same issue. Can anyone guide how to stop this backup task and properly initiate the backup again?
Receiving ‘rules:rule exists should be an array of strings’ error in GitLab CI
I’m trying to run a pipeline job in GitLab CI to perform npm build but only if a package.json exists in the upstream pipeline. I used ‘needs:’ to download files from the upstream pipeline. When the pipeline job runs I get an error stating: jobs:packages.react:rules:rule exists should be an array of strings
. I checked the GitLab documentation for rules:exists:project and the YAML syntax is correct. I made sure the YAML is indented correctly. How do I solve the error?
Unable to run python package as part of Gitlab / Gitaly pre-receive hook
How do I install a python package so that gitaly can run it as part of a pre-receive hook? I’ve tried modifying the path variable within the script. Ive installed the python package as sudo. Regardless, I get exit codes: 127