following is my Gitlab CI code:- I’m trying to validate the JIRA status by calling its API after retrieving Jira id from title of Merge Request. There is a problem in the If condition below if [[ “$JIRA_STATUS” == “^(Done|Completed|Closed)$” ]] as it is not validating it properly. Every time, the else condition is getting executed and printing the message
Tag: gitlab
sed command does not execute properly on gitlab runner
I have a script which needs to run npm run test and capture test coverage coverage value so here I am trying to capture the value 36.95 and output it in gitlab script which I am planning to add as a gitlab job. It seems that the runner is gnu. If I execute the below script on my local it
Can’t install bash in multiarch build on Alpine
I am trying to build image for linux/arm64/v8 on linux/amd64 Gitlab runner. I run it with this command: My Dockerfile is fairly simple: But it fails with: It’s Gitlab runner version 13.4.1 and Docker executor docker:stable. What can I do about this issue? Answer There were three problems with my approach: I needed to install buildx extension I had to
Trying to download python from a docker container while using GitLab CI
The last stage of my GitLab CI pipeline is a selenium test. I’m trying to automate it through GitLab CI: I have tried writing this a few different ways– not installing curl, installing everything on a different line… But every time I get this same result: I understand that it is better to have a docker container pre-packaged with python
Unable to register git runner on local network server
i’m trying to register a git runner on my company local network server, gitlab is working fine with self singed certificate, but when trying to register a git runner like this then pasting the git URL then the token: and then the description and the tags, then i get this error: i’m not using docker, just normal setup, please any
Copy Gitlab repositories to another Gitlab server through filesystem
I had a gitlab server of 7.6.2 version with some repositories. Now this server was upgraded by newest Ubuntu and it has an empty gitlab server of version 12.0.1. I also have a HDD backup from old gitlab server. I need to move all repositories from old gitlab server to the new one. I tried to copy .git repositories from
Gitlab avoid user login via SSH
When I create a user on Gitlab, it creates a regular user on linux and it can login using a regular SSH protocol with same password an user. How can I disable the SSH login using SSH to desired users? All my server is exposed to that users. Thank you Answer Edit the sshd_config file adding this line Read more:
Password for GitLab
I’ve installed GitLab per https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos. The instructions state to add user “git” All seemed to work. I then added a project on the GitLab server, and it gave instructions to push to it: I then went to my client to push to the git server. Is there a password I should have set? Probably not, and instructions don’t address. Reading