gitlab
How to integrate sourcetree for gitlab
This worked for me, Step 1: Click on + New Repository> Clone from URL Step 2: In Source URL provide URL followed by your user name, Example: GitLab Repo URL : http://git.zaid-labs.info/zaid/iosapp.git GitLab User Name : zaid.pathan So final URL should be http://zaid.pathan@git.zaid-labs.info/zaid/iosapp.git Note: zaid.pathan@ added before git. Step 3: Enjoy cloning :).
Gitlab CI/CD job’s log exceeded limit
To change the build log size of your jobs in Gitlab CI/CD, you can edit your config.toml file and add a new limit in kilobytes: [[runners]] output_limit = 10000 According to the documentation output_limit : Maximum build log size in kilobytes. Default is 4096 (4MB). For this to take effect, you need to restart the … Read more
How to create a GitLab merge request via command line
As of GitLab 11.10, if you’re using git 2.10 or newer, you can automatically create a merge request from the command line like this: git push -o merge_request.create More information can be found in the docs.
Fingerprint has already been taken gitlab
In my case; the public key i was trying to add was already used with ‘work’ Gitlab account and i received the said error upon trying to use the same key with ‘personal’ Gitlab account. Solution – Add another public key on the same machine and use that with ‘personal’ gitlab account (both on same … Read more
How to change the project owner in GitLab
TL;DR Move your project to a new group where both you and the other user are owners, then the other user must transfer it to his own namespace. Background The other answers obviously do not work to transfer a project to a different user, although the comments section of one is enough for someone to … Read more
How to access multiple repositories in CI build?
If you are running gitlab version 8.12 or later, the permissions model was reworked. Along with this new permission model comes the the CI environment variable CI_JOB_TOKEN. The premium version of GitLab uses this environment variable for triggers, but you can use it to clone repos. dummy_stage: script: – git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.instance/group/project.git
How do we change the URL of a working GitLab install?
GitLab Omnibus For an Omnibus install, it is a little different. The correct place in an Omnibus install is: /etc/gitlab/gitlab.rb external_url ‘http://gitlab.example.com’ Finally, you’ll need to execute sudo gitlab-ctl reconfigure and sudo gitlab-ctl restart so the changes apply. I was making changes in the wrong places and they were getting blown away. The incorrect paths … Read more
How to run a gitlab-ci.yml job only on a tagged branch?
This behavior will be introduced in version 12. Open issue was recently update: Jason Lenny @jlenny changed title from {-Update .gitlab-ci.yml to support conjunction logic for build conditions-} to Conjunction logic for build conditions MVC · 2 days ago Jason Lenny @jlenny changed milestone to 12.0 · 2 days ago (fingers crossed) A solution is … Read more
Changing image size in Markdown on Gitlab
Raw HTML works Try the following: after uploading your image, use img tag with src pointing to the path of uploaded image, for me it’s working: The following is from one of my files  <img src=”/uploads/d19fcc3d3b4d313c8cd7960a343463b6/table.png” width=”120″ height=”120″> Check this link, where I’ve put different size of same image https://gitlab.com/Basel.issmail/resize-image/wikis/resizing-image There is an issue … Read more