Sample repository url
password less cloning of repository only works with SSH. For example
git clone firstname.lastname@example.org:<user>/<project>.git
If the repository is already checked out via HTTPS and you want to change it to SSH
git remote set-url origin email@example.com:<user>/<project>.git
- To disable markup formatting in the issue tracker, enclose the text in <pre> and </pre> tags
generate new recovery codes with an ssh key
ssh firstname.lastname@example.org 2fa_recovery_codes
test ssh connection
ssh -T email@example.com
The status command has to be run in a unix-y terminal (ex:- git bash) with admin privileges.
On a windows command prompt with admin privileges, I get warnings such as
time="2019-10-09T17:49:59+01:00" level=info msg="Failed to set console mode for cli" error="The parameter is incorrect."
On a windows command prompt with no admin privileges, I get the following error (along with the above warnings)
gitlab-runner: Access is denied.
But if I use git bash with admin privileges, then there are no errors.
tested on | windows server 2012R2
- https://docs.gitlab.com/ce/ci/quick_start/README.html - getting started with Gitlab CI/CD
- https://docs.gitlab.com/ee/ci/README.html - high level page on gitlab CI/CD documentation
To enable CI on a per project basis
Settings > General > Visibility, project features, permissions -> Repository -> Pipelines -> Enable -> Save changes
Issue: gitlab CI does not create a new build directory on the next CI runs?
Explanation: The name of the build directory may be the same. But it is created fresh before initiating the new run.
Design question: Is it better to delete the build directory yourself once the CI pipeline completes (say in after_script)?
Decision: No, do not do it. If the build were to fail for some reason, this directory can help debug and identify the issue. Gitlab anyway cleans it up before starting a new CI pipeline. So the space gain in between is not worth it.
Run only on some branches
job: only: - branch1 - branch2