gitlab

Can you get the next commit id before items are commited?

谁都会走 提交于 2019-12-13 03:29:47
问题 I'm currently adding a commit-msg hook that will add the git commit URL as a comment to Jira. The commit URL has the format http://[server]/[group]/[project]/commit/[commit_id] Is it possible to obtain the commit id or is it only produced after the item has been committed? Does this mean I need to implement this in a later hook? 回答1: A git commit id is a SHA-1 hash of: The commit message Author and committer info The date The contents (the hash of the tree) The parent commit hash (or hashes,

API Requests format in gitlab

十年热恋 提交于 2019-12-13 02:56:47
问题 I am pretty new to Gitlab and Sonarqube. Getting my code coverage of my pipeline in my sonarqube. Now I want to call the metrics of my code coverage in Gitlab. I have updated my gitlab.ci.yml file to get the api response and have added this URL "http://sonarqube.dev.aws.nervo.com/component_measures/domain/Coverage?id=com.nervo.microservices%3Adelivery/api/resource=delivery&metrics=ncloc,coverage" When checked in postman for any response,it failed. Goal: The goal is that on consecutive runs of

Setting up SSH on sourcetree - wont PUSH to GitLab - asks for password

大兔子大兔子 提交于 2019-12-13 02:11:18
问题 I have followed the below instructions to create an SSH key and added it to Gitlab. https://www.sourcetreeapp.com/faq/ (under the heading "How do I set up SSH keys for authentication?") My changes are being tracked in Sourcetree and I am able to commit but I cannot pull or push without it asking for Authentication. Every time I add my password it rejects it but I am able to login direct to Gitlab with the same details. Am I missing something? I thought having set up SSH I wouldn't have to

Commit without add and how to see remote branch log

十年热恋 提交于 2019-12-13 01:59:54
问题 1.I'm new to git and would like to know what happen if I've a file which was modified and already staged in the past(but now modified again), and I want to commit the file using a command such as : git commit -m "yada yada" ~/home/Dan/project/file_to_commit.py Is this equivalent to doing: a. git add ~/home/dan/project/file_to_commit.py b. git commit -m "yada yada" If not please explain. 2.How can I see the remotes branch commits logs?(pushes) without doing git pull? Thanks 回答1: This might be

Gitlab CI: running the same set of tests on several machines

我只是一个虾纸丫 提交于 2019-12-13 01:59:47
问题 In high performance computing is crucial to have a code tested against many different architectures/compilers: from a laptop to a supercomputer. Assuming that we have N testing machines/ workers (each one running gitlab-ci-runner ); M tests , what shall be the correct layout of .gitlab-ci.yml to ensure that each of the N machines runs all the tests? Looks to me that adding just more workers ends up in a round-robin like assignment of the jobs. Thanks for your help. 回答1: You could use tags in

Visual Studio 2015 and Git: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

倾然丶 夕夏残阳落幕 提交于 2019-12-13 01:56:14
问题 I'm using Gitlab and Visual Studio 2015 and when I push my changes to Gitlab projects, I receive the next error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Inner Exception: The remote certificate is invalid according to the validation procedure. To setup my project, I followed the next steps: Create a project in Gitlab. Clone this project into my folder. In this step I needed to use the next command: git config --global http

GitLab on Wheezy, error while installing Gems, libmysqlclient-dev probably missing but unistallable

一世执手 提交于 2019-12-13 01:27:12
问题 So, while I was installing GitLab following the official tutorial I got an error on the Gems installation. Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11 for inspection. Results logged to /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/ext/mysql2/gem_make.out An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling. Looking online they

GitLab SMTP config exception

别说谁变了你拦得住时间么 提交于 2019-12-13 00:06:49
问题 I am trying to setup GitLab email notifications using SMTP. I have GitLab 7.4.3 on Ruby 2.1.2p95, Rails 4.1.1. I followed these instructions and made a copy of smtp_settings.rb.example the following way: sudo cp /opt/gitlab/embedded/service/gitlab-railsconfig/initializers/smtp_settings.rb.sample /opt/gitlab/embedded/service/gitlab-railsconfig/initializers/smtp_settings.rb Now when I try to run: sudo gitlab-ctl reconfigure I get following exception: Starting Chef Client, version 11.12.2

What's the default password for postgreSQL installed by Gitlab Omibus version?

做~自己de王妃 提交于 2019-12-12 23:51:42
问题 I installed Omnibus Gitlab using the docker image of gitlab-ce. Now my question is what's the default password for the embedded PostgreSQL database password? I checked the Dockerfile and some scripts along with it from https://gitlab.com/gitlab-org/omnibus-gitlab, but could not find any clue. 回答1: Actually no need to access the remote PostgreSQL server which is embedded in the Omnibus version for users. If this is needed, just follow the documents to do more configuration to achieve this,

Gitlab page is stuck at pending

拈花ヽ惹草 提交于 2019-12-12 23:06:45
问题 I set up a Gitlab pages page a couple of days ago. It was building fine till this morning. Now it seems to be stuck at pending and hasn't built despite my attempts to restart it. I checked if there is a shared runner. It currently says: Available shared runners - 1 in the Runner section of Project Settings. This is the .yml file. pages: script: - mkdir .public - cp -r * .public - mv .public public artifacts: paths: - public only: - master This code was recommended in the pages installation