Questions tagged [gitlab-api]

The GitLab API is the api for the GitLab Community Edition.

The GitLab API is the for the GitLab Community Edition, which is hosted on github. See for more information on GitLab.

The GitLab API offers numerous access and management resources, including the most common needed for effective :

Additional API resources are available to provide a rich source control environment. Full documentation can also be found in the GitLab API github repository.

663 questions
4
votes
2 answers

using api gitlab to download file

EDIT 2: It's working I have added raw parameter Thanks a lot to Arty-chan. curl --insecure --request GET --header 'PRIVATE-TOKEN: Y_F8YP3nUnFbzhxkQvgo'…
rab
  • 133
  • 2
  • 13
4
votes
2 answers

How can I retrieve a gitlab issue by its id?

I am trying to track a GitLab issue no matter in what project it may reside. An issue is normally created in GitLab within the context of a project. If it is moved to another project, the issue is closed and a new issue is created. The original…
Cheez
  • 41
  • 2
4
votes
1 answer

Obtain shared runners token Gitlab API

My goal is to automatically register a shared Gitlab runner on our hosted Gitlab. To do this, I need to obtain the runners token via the Gitlab API. Unfortunately, I haven't found a point in the API to fetch the shared runners token. On the website,…
4
votes
1 answer

Get contributions.json on Gitlab

How can I get contributions.json of myself in a Gitlab CI pipeline with private contributions if "show private contributions" is off in the settings? https://gitlab.com/users/GITLAB_USERNAME/calendar.json shows both public and private contributions…
gtpzkldqc
  • 73
  • 7
4
votes
1 answer

Submit Python script to Databricks JOB

Is it possible to submit/configure a spark python script (.py) file to databricks job? I have my developments happening in my Pycharm IDE, then push/commit the code to our gitlab repository. My requirement is I need to create new jobs in databricks…
Yuva
  • 2,831
  • 7
  • 36
  • 60
4
votes
1 answer

How to publish xUnit and jUnit test results to gitlab

I have a jenkins pipeline with test stage that triggered via hook on gitlab. Is there any way to publish test results under gitlab for the triggered build? Thank you
aGuy
  • 83
  • 5
4
votes
3 answers

How to get only specific fields in Gitlab API response?

For example I want to receive only project names: https://gitlab.com/api/v4/groups/:id/projects?fields=name Is that possible?
graceman9
  • 608
  • 2
  • 8
  • 20
4
votes
1 answer

How to fetch all data from GitLab API with Axios?

I want to fetch the data from all the projects hosted by my GitLab instance. Now I know that GitLab displays 20 projects by default, so I need to set a bigger number of instances displayed per…
avazula
  • 472
  • 1
  • 6
  • 23
4
votes
2 answers

GitLab CI get predefined variable with API?

I am using predefined variables like $CI_COMMIT_REF_SLUG in my gitlab ci pipeline and it would be very useful to access those variables via the gitlab api. I have read through the documentation and went through all gitlab-ci related GET routes…
Theo
  • 2,262
  • 3
  • 23
  • 49
4
votes
1 answer

GitLab API - Unable to access file which is within a directory

I have a GitLab project which is set up as follows: myserver.com/SuperGroup/SubGroup/SubGroupProject The tree of the following project is a top-level txt file and a txt file within a directory. I get the tree from the GitLab API…
N.A.
  • 41
  • 6
4
votes
2 answers

Is it possible to install gitlab using local IP address of machine instead of domain name?

Is it possible to install Gitlab using the local IP address of the machine instead of domain name? If yes then how?
4
votes
2 answers

Retrieve users private token with Gitlab python API

I am trying to retrieve all users' private token and SSH keys with gitlab API (v4) using an admin private token in my curl requests. I can get a user SSH key by running the following command : curl --header "PRIVATE-TOKEN: my_admin_token"…
4
votes
2 answers

gitlab api Tag creation error

Hi I am trying to create a tag to a project using the gitlab api, but it keeps saying tag name not valid. I even tried using the sample in gitlab api doc. Here is my attempt: ➜ /tmp curl -X POST -d @body.json…
Pramod Setlur
  • 811
  • 1
  • 15
  • 27
3
votes
1 answer

send the HTML report generated in gitlab

I've the html report generated under the artifacts folder for a given job, now I want to make that HTML report to be available in one of the nginx hosted web server (http://some_domain_name:8080). my .yml file looks like below: job: artifacts: …
User123
  • 1,498
  • 2
  • 12
  • 26
3
votes
1 answer

How to find a release by the merge request in GitLab API?

I want to know which application/software version fixes the bug. In other words, I have bug/issue ID and want to find a version number. I start by doing: GET projects/*cut*/issues/42/closed_by which gives me a merge request which lists this issue as…