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
0
votes
3 answers

Unable to connect GitLab with Visual Studio Code

I'm using a self-hosted GitLab instance deployed for the company, along with Visual Studio Code. I downloaded the extension "GitLab Workflow" in Visual Studio Code, so I can see my GitLab projects hosted in the company instance. During setup, I…
CloudRock
  • 159
  • 2
  • 5
  • 14
0
votes
0 answers

Is there a way to get the filename of a file from its download link in Ansible

I'm writing some ansible code to update a project from gitlab so I need to first check if the host computer and the version I'm trying to install are different from one another. I find the version on Gitlab from the file…
0
votes
1 answer

GitLab: Append signature to a issue comments automatically

I am working on a private installation of GitLab and I would like to know if there is a way to append automatically a string of text at the end of the comment when answering an issue (as, for example, a signature). Thanks in advance for any help you…
warman69
  • 11
  • 3
0
votes
1 answer

Download files Git repo

I have a log file in my repo. for every component its a different one but called all the same (log.txt) I want to download these log files from a specific (sha/gittag). Because I need the specific version of this files. Because of the same name, i…
user14333482
0
votes
1 answer

Access project variable value through Gitlab API

I was able to get the list printed out as in documentation. However I am unable to print only the value of the variable. I am using Bash and I am very new to it, so apologies, if this is stupid question. My desired output is only the value of…
0
votes
1 answer

gitlab CLI - get project variable value

I am basically trying to do this gl = gitlab.Gitlab('git.mygit.com', private_token='my_token') gl.projects.get(ID).variables.get('KEY').value but using CLI commands. I can get to the correct variable, but cannot access the value gitlab…
0
votes
1 answer

Azure pipeline parameter as secret variable

I want to pass PAT as pipeline parameter to script(gitlab.sh) that calls Gitlab REST API: gitlab.sh #!/bin/bash set -e MY_PAT="${MY_PAT}" #I want this to be secret and not printed in logs function rest_api { curl -sSL -H "Content-Type:…
S R
  • 674
  • 2
  • 18
  • 45
0
votes
1 answer

configure spring cloud dataflow server to use deploy token to access GitLab repository(package registery)

Since I have used GitLab package registery as remote maven repository for a while, I'd like to use this for deployment in spring cloud dataflow server. To use GitLab package registery, local maven setting has server section with wagon httpHeaders…
0
votes
1 answer

How to preform REST call to GitLab API from a running job?

I need to make a Gitlab API REST call (let's say "GET /projects/:id/jobs/:job_id") from a script running during CI pipelines' job execution. I need a token to pass through security check. Sure I can create such a token (PAT) and to use it and it…
RandomB
  • 3,367
  • 19
  • 30
0
votes
1 answer

gitlab get all commit messages for external project tool API

I need to figure out how I can read out all git commit messages. We have an external project management System and we want to collect all commit messages in there. Is there anyway to read out all commits? I found the API to get the commits for every…
Anutrof
  • 27
  • 5
0
votes
1 answer

GitLAB Dedicate Runner not able to contact pull docker image

GitLab dedicated runner defined in the Yaml file using the Tags..But the pre build failing due to not able to pull the docker image defined "amazonlinux:latest",,,,FYI below is where the runner is stuck..... Running with gitlab-runner 13.5.0…
PSK
  • 1
  • 2
  • 6
0
votes
1 answer

How to Commit Mp3 Files to Folders in Gitlab through API

I am trying to commit a file to Gitlab through the API. The code had been working for over 6 months but now has stopped working, nothing in the code had changed. The file is commited to Gitlab, however it is corrupted. I have went through the Guzzle…
breann
  • 5
  • 1
0
votes
1 answer

Is it possible to get the last commit sha of a merge request? GITLAB API

I use the API function get single Merge request. Is it possible to find it out the commit sha of the last commit without using Get single MR commits Just with the get single merge request call?
user14333482
0
votes
1 answer

GitLab API `400 Bad Request` response: Bad Request

I am working on GitLab API to commit an mp3 file and it was working for years without having problems and the last few weeks it is throwing errors GuzzleHttp\Exception\ClientException: Client error: `POST…
Ann
  • 31
  • 1
  • 6
0
votes
1 answer

Why is a field missing?

There is a Python script that should set a policy for cleaning Docker images headers = {"PRIVATE-TOKEN": TOKEN} data_binary = { "container_expiration_policy_attributes": { "cadence": "1month", "enabled": "true", …