gitlab

Git: unable to get remote and local/server the same

心不动则不痛 提交于 2020-05-17 06:26:27
问题 git status on the server returns: On branch develop Your branch is ahead of 'origin/develop' by 14 commits. (use "git push" to publish your local commits) nothing to commit, working tree clean My goal is to get the git branch on gitlab.com and on the server synchronized. When I look at the difference between the two, the commits that it states that remote on the server is ahead, are commits I believe are actually there on gitlab.com. I did the following on the server: git status returns "Your

ERROR TypeError: Cannot set property 'proceed' of undefined

隐身守侯 提交于 2020-05-15 09:55:10
问题 I'm trying to draw some charts using Highcharts Javascript charting engine, I have it all set up, it works fine in my local development environment, but when I deploy it to Gitlab and access it, it is giving me the following error: ERROR TypeError: Cannot set property 'proceed' of undefined at t.<computed> (main-es2015.7538dcc357c548058d75.js:1) at Object.<anonymous> (main-es2015.7538dcc357c548058d75.js:1) at Object.t.<computed> [as arc] (main-es2015.7538dcc357c548058d75.js:1) at A

How to trigger a specific job in gitlab

那年仲夏 提交于 2020-05-15 08:38:06
问题 I want to run a specific job in a pipeline , I thought assigning a tag for the job and then specifying this tag again in the post method will fulfill my needs .The problem is when I trigger using the api(post) , all the jobs in the pipeline are triggered event though only one of this tagged . gitlab-ci.yml : job1: script: - echo "helloworld!" tags : [myTag] job2: script: - echo "hello gitlab!" the api call : curl -X POST -F token="xxx" -F ref="myTag" https://gitlab.com/api/v4/projects

Maven install-file not effective in GitLab/Docker: “could not resolve dependencies for project”

我的未来我决定 提交于 2020-05-15 05:01:52
问题 I'm trying to build my java project on a GitLab server using Maven in Docker. Because I use 3rd party jars, I install them locally using the install-file plugin. This is/seems succesfull both on my local machine, as on the Docker: $ mvn install:install-file -Dfile=lib/customArtifact-1.0.jar -DgroupId=customArtifact -DartifactId=customArtifact -Dversion=1.0 -Dpackaging=jar [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------

Maven install-file not effective in GitLab/Docker: “could not resolve dependencies for project”

为君一笑 提交于 2020-05-15 05:01:46
问题 I'm trying to build my java project on a GitLab server using Maven in Docker. Because I use 3rd party jars, I install them locally using the install-file plugin. This is/seems succesfull both on my local machine, as on the Docker: $ mvn install:install-file -Dfile=lib/customArtifact-1.0.jar -DgroupId=customArtifact -DartifactId=customArtifact -Dversion=1.0 -Dpackaging=jar [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------

GitLab count total number of issues

天大地大妈咪最大 提交于 2020-05-14 20:15:46
问题 I would like to count all issues on my gitlab project using api. Below the command that I'm using: curl --header "PRIVATE-TOKEN:xxxxxxx" https://gitlab.myapp.com/api/v4/groups/xx/issues?scope=all I've also tried to replace groups with project. We would like to bypass the pagination problem: the displayed results are always 100 (the max number). How can we could get more than 100 ? I would like to have as result only the total number of issue on my project. 回答1: for anyone interestered I fixed

Is it a way to avoid branch out branch in when git pull?

£可爱£侵袭症+ 提交于 2020-05-14 12:39:05
问题 Me and my friend commited, then I pushed my changes, he tried push as well, but GitLab refused, and that is good, but he then pulled changes and a "branch out" and "branch in" is displayed in the graph. Is it a way to avoid this phenomenon and force him to rebase his changes? dev-3 is protected in GitLab . 回答1: There are a couple different questions there... If you want your long-term history to look "linear" (i.e. no branches/merges), then as you note, you would use rebase. In this case, if

Gitlab CE Doesn't Add a Public Key to authorized_keys

寵の児 提交于 2020-05-14 09:00:47
问题 I just installed the newest Omnibus Gitlab in CentOS 7. I have added my public key to my account but gitlab keeps prompting me for a password every time I try to connect using ssh, like ssh git@mygitlab.com . The git home folder is /var/opt/gitlab . Here are the various things that I've done: I have checked that write to authorized_keys is checked in the admin area -> settings -> network I have chmod the relevant folders and authorized_keys file. 0700 for home, 0711 for .ssh and 0600 for

Gitlab CE Doesn't Add a Public Key to authorized_keys

我们两清 提交于 2020-05-14 09:00:26
问题 I just installed the newest Omnibus Gitlab in CentOS 7. I have added my public key to my account but gitlab keeps prompting me for a password every time I try to connect using ssh, like ssh git@mygitlab.com . The git home folder is /var/opt/gitlab . Here are the various things that I've done: I have checked that write to authorized_keys is checked in the admin area -> settings -> network I have chmod the relevant folders and authorized_keys file. 0700 for home, 0711 for .ssh and 0600 for

Gitlab trigger Pipeline only if there is a pushed TAG for all branches except master

一个人想着一个人 提交于 2020-05-13 14:28:32
问题 How does my YAML file have to be configured so that the pipeline for the one case (job: build) is only triggered when a tag is pushed. This tag may be in all branches except master. For the master case I have a separate job (build_master). yaml file: Problem: If the master branch gets a tag, the pipeline will be run via "build". that should not happen. Nothing should happen before_script: - xcopy /y /s "C:/stuff" "%CI_PROJECT_DIR%" stages: - build - deploy build: stage: build script: - build