Tag: gitlab

How can I trigger Jenkins to build project by special string in comment of git commit?

For example, I want to publish my project to a testing environment only when I put <testing build> string in the comment of a git commit. Now, I have to do it using GitLab’s web hooks and call Jenkins build URL once some code has been pushed. It does not make sense that only few […]

Prepublish not working as expected

I am testing on npm scripts to build my project dependency. My idea comes from https://github.com/ParsePlatform/parse-server which impressed me by code in repository doesn’t mean code in node_modules after npm install. Below is my testmodule structure src/index.js package.json and this is my package.json content { “name”: “testmodule”, “version”: “1.0.0”, “description”: “”, “main”: “lib/index.js”, “scripts”: { […]

How to squash commit when approve merge request, gitlab

I have two branches master and release at gitlab. At release branch, I hope it will only have commit message like: v0.1.0, v0.1.1. Say after I finished developed v0.1.0, I have have several feature and bugfix commits in master say c1. bugfix1 c2. feature1 c3. feature2 I will create merge request in gitlab from master […]

gitlab repositories not migrating to omnibus version

I am having trouble migrating gitlab repositories from manual version to omnibus version. When I run: sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production I get empty repositories!! I even tried to copy them manually: sudo cp -r /home/git/repositories/* /var/opt/gitlab/git-data/repositories/ sudo chown -R git:git /var/opt/gitlab/git-data/repositories/* sudo gitlab-rake gitlab:import:repos But still no luck, the files […]

How to deploy Django app on Ubuntu when using Gitlab

I have create a simple Django application, then I have commit and push to Gitlab. Finally I would like to install that application on my “production server” which is running ubuntu so from that server terminal I run the command: git clone https://domain.com/path/to/git I cannot find my python code among the file cloned. What is […]

Update from master keeping changes made in forked repo in gitlab

I have forked my master code i.e zip/production and created a forked project i.e map/production on gitlab Now I have made changes to my forked codebase and I want to maintain it that way: I.e I dont want to touch the additional code present in separate files on my forked repo but I have also […]

How to Get the total count of code-review comments given for a git branch merge reuest

My only concern is to know the number of comments mentioned for a particular branch in git. Is there a way ? If so what is that thanks

Automatically sync changes on master codebase to forked codebase in gitlab

I have 2 projects in my gitlab account named zip/production (master) and map/production (forked from master). Whenever i make changes to zip/production the same should be automatically updated to map/production but should keep the additional files which are there in map/production as it is. Is this possible?

Visual Studio Solution Files not opening After Git Download

When I go to download projects from GitLab and try to open them via Windows explorer I get the following. If I open the project from Visual Studio it seems to be fine (although there may be some dormant problems). Along with Choose Application window having odd behaviour when you browse to the .sln in […]

Get Git BranchName in WixSetup Project Build Variable

I am using Visual Studio 2015 with GitLab. How can i get my current Git Branch Name in my VS Setup Projects Build Variable so that i can pass it to Wix’s wxs file. Something like this, I tried few but did not work, ProductName=$(Build.DefinitionName) ProductName=$Env:BUILD_SOURCEBRANCHNAME

Git Baby is a git and github fan, let's start git clone.