725 questions
0
votes
1
answer
111
views
How to access GitLab (Azure integrated) APIs using AAD
We use GitLab enterprise within our company and it is integrated with Azure (https://docs.gitlab.com/integration/azure/).
In some of our pipelines, we want to generate an access token for some ...
1
vote
0
answers
48
views
Gitlab “Merge request branch workflow” rules via glab api
Is it possible to configure “Merge request branch workflow” rules via glab api?
0
votes
1
answer
88
views
Download artifacts from a Gitlab job
I'm trying to download artifacts from a Gitlab build (hosted on gitlab.com) according to the documentation
So I run the following command :
curl --location --output artifacts.zip --header "...
0
votes
0
answers
128
views
How can I see the blocking/is blocked relationship on issues via Gitlab API?
By using Gitlab API, I am able to get most information from an issue, but some information is missing on the blocking/is blocked relationship.
On Windows, I use the following command to access ...
0
votes
1
answer
248
views
Gitlab COntainer Registry Error: docker login $CI_REGISTRY ----- tls: failed to verify certificate: x509: certificate signed by unknown authority
I have a local Gitlab CE version 17.8.1, trying to have Container registry.
I am using self signed certificates.
When running the build-image in the pipeline, I got failer to verify certificate error:
...
0
votes
0
answers
36
views
Fetch the job details that run more than 2 hours in GitLab
Recently we faced performance degradation in our GitLab selfhosted as there were 2 jobs that were running more than 3 hours. We have more than 18000 projects in our GitLab, and we need to keep track ...
0
votes
0
answers
206
views
On GitLab, how to show activity from issues and merge requests that I participate in?
Is it possible to show recent activity from issues and merge requests that I participate in? For example, if someone else leaves a comment.
The only obvious UI tabs, that I can see are:
“Your ...
2
votes
1
answer
97
views
Job completed with Warning status but API shows as Failed
The pipeline is having below stage.
1. download - It will download project zip file from artifactory depends on the release number
2. build - It will compile and deploy the downloaded zip file on ...
0
votes
1
answer
35
views
Gitlab - Run Specific job after it got failed in previous pipeline after changed the code
I have three stages: A, B, and C. when triggers the pipeline Job A is passed, job b is failed and as a result, job c is not carried out. I now want to add a few lines of code to job b and execute it ...
3
votes
1
answer
294
views
Gitlab sync tokens with environment variables
In Gitlab, I use all sorts of Project Access Tokens to access Gitlab resources within the pipeline.
I create the tokens then create environment variables and put the generated token values there.
Say, ...
0
votes
0
answers
100
views
401 Unauthorized error deploying to gitlab maven registry
I can't figure out what might be causing this 401 Unauthorized error when trying to deploy to my project's maven registry from my local workstation. Hoping there might be some maven users willing to ...
0
votes
0
answers
90
views
Restoring Gitlab CI/CD variables after migration to new server
I have been tasked with migrating our team's GitLab group from one private GitLab server to another. Since the server admins have not enabled direct transfer, it looks like I'm stuck with exporting/...
0
votes
0
answers
52
views
Use GitLab Packages API (not generic) to download individual package files
I use a self hosted GitLab to store Maven dependencies. After a server incident some files were removed from the file system, but are still listed in the Package Registry, causing a 500 error when ...
1
vote
0
answers
88
views
GitLab API endpoint GET /projects/:id/pipelines/:pipeline_id documentation is incorrect or am I doing this wrong?
In the GitLab API documentation for pipelines, it states that this is available in the free, premium, and ultimate tiers. The following example is given for getting data back for multiple pipelines
...
1
vote
1
answer
711
views
Getting 401 from gitlab ci trying to use gitlab api
I am running into a frustrating issue where I am failing to auth to the gitlab api from within a gitlab ci job (to add a label to a MR based on if a file is touched) using a group token.
I run the cmd ...
0
votes
0
answers
26
views
NPM Install in Downstream Pipeline Triggering Upstream Project
I'm working with a multi-project CI/CD setup and I'm encountering an issue with my downstream pipeline. I have configured a trigger to include a downstream project as follows:
trigger: include: - ...
0
votes
0
answers
32
views
how to identify new failures within gitlabCI daily scheduled pipeline
Using GitlabCI, we've scheduled a bunch of tests to run daily.
When this test job is failing, we receive a (slack) notification in a dedicated channel.
Now I'd like to push it further: I want to ...
0
votes
0
answers
71
views
Pass test artifacts to upstream pipeline in GitLab CI
The upstream merge request pipeline triggers a multi-platform downstream pipeline which build and run hundreds tests through different jobs for various platforms (for instance, linux/win/mac+intel/arm+...
0
votes
1
answer
278
views
How to configure pre-commit hooks in GITLAB?
Will gitlab creates a temporary commit_msg_file once git commit or git commit -m is given?
how to configure pre-commit hooks, so that once the developes gives the commit message, that needs to be ...
0
votes
0
answers
87
views
Gitlab GraphQL - get commits of a branch without merge requests
I am planning to use Gitlab GraphQL API, I'd like to get all the commits of a branch. In my project the commits are added directly to develop branch so there aren't merge requests.
I found this ...
0
votes
0
answers
28
views
Can we get all the project in specific branch of Gitlab in one API
We can get all the project using https://gitlab.example.com/api/v4/projects and then we have to iterate all the project one by one to get there branches using https://gitlab.example.com/api/v4/...
0
votes
1
answer
51
views
How to query for flakey tests using GitLab's REST or GraphQL API
I'm trying to query our instance of GitLab for flakey tests.
If I navigate to a URL of this format, https://our-gitlab-instance.com/the-group/the-project/-/pipelines/365771/tests/suite.json?build_ids[]...
0
votes
0
answers
129
views
Gitlab GraphQL get all commits for a given user
I am trying to retrieve a complete list of actions performed by a user (events) in my self-hosted GitLab instance. Specifically, I need a list of:
Commits (e.g., commit hashes or identifiers)
Created/...
1
vote
1
answer
779
views
Gitlab: does runner need to be same version as Gitlab server?
Online Gitlab version:
GitLab Enterprise Edition 17.5.0-pre c30a70942c6
Custom Gitlab runner version (running on Ubuntu):
Version: 16.1.0
Git revision: b72e108d
Git branch: 16-1-stable
GO ...
1
vote
0
answers
270
views
How can I get the parent of a Gitlab pipeline with GraphQL without using iid?
I have a Gitlab pipeline ID, but this pipeline has been triggered by another one, and I need to access to the properties of this parent pipeline. For this, I only have the pipeline id, which should be ...
1
vote
1
answer
177
views
GitLab API Rest filtering issues by milestone_id
I would like to retrieve all the issues from a project which have been assigned to a certain milestone and then apply some filters to them (for instance, update date).
I use the query parameter ...
0
votes
0
answers
68
views
Gitlab Runner UI stuck
my gitlab cicd runner is starting and at end , it is stucking without showing me the result till the timeout, and after it it is failing with timeout error
when I see for that process while that job ...
0
votes
0
answers
53
views
Keep main branch only on GitLab project from group template
What I am trying to do
To create a new project using a Group-level template that copies only the main branch , via GitLab API.
What I did
(On GitLab Ultimate/Enterprise)
Use FetchAPI to send a POST ...
0
votes
1
answer
87
views
Difference between Gitlab runner scopes
I am trying to call gitlab api to get runner list. But I am bit confused in the scopes given in the documentation.
curl --header "PRIVATE-TOKEN:${KEY}" "https://<git-url>/api/v4/...
0
votes
0
answers
1k
views
How to get "changes requested" info on Gitlab MR
I would like to see for which Gitlab MRs changes were requested.
For example, if I approve a MR, I clearly see that in MR list:
But if I request changes, I don't see that info on the list, I need to ...
0
votes
0
answers
404
views
URL using bad/illegal format or missing URL
Getting the below error when trying to execute the below script in gitlab pipeline.
curl: (3) URL using bad/illegal format or missing URL
/builds/testing/testing-prj/testing-api/scripts/test_api.sh:
...
1
vote
0
answers
86
views
Gitlab configure workflows on target branches on group level
In Gitlab, is it possible to setup workflow target branches as described here: https://docs.gitlab.com/ee/user/project/repository/branches/index.html#configure-workflows-for-target-branches
but on a ...
0
votes
1
answer
44
views
GitLab package manager adds WebKitFormBoundary inside my files
I've built a small HTML/JS page that uses GitLab API to upload files into the Package Registry like:
<input class="form-control mb-1" type="file" id="formFile" />
&...
5
votes
1
answer
686
views
Integrating MLflow with GitLab: Getting 404 Project Not Found Error
I am working on a project that involves using MLflow and GitLab integration. I have set up a Jupyter notebook where I aim to integrate data from MLflow into GitLab. Following the instructions provided ...
0
votes
1
answer
143
views
how to delete helm chart from gitlab package with api call
I'm using GitLab package for the helm chart but I'm unable to delete the helm chart from GitLab package using gitlab API
Method I tried:
I tried
curl --request DELETE --header "PRIVATE-TOKEN: ...
1
vote
1
answer
148
views
How to remove a reviewer in a merge request By API?
I can’t find any information in the GitLab documentation on how to remove one single reviewer by ID in a merd request. Has anyone encountered this problem?
I tried to do delete Requests by type:https:/...
1
vote
0
answers
134
views
Creating an automated Changelog.md with GitLab and Hugo
As a GitLab user, I would like to program an automated creation of a changelog.md. For my Hugo Project I will using the .gitlab-ci.yml. The tutorial by Ben Ridley from the GitLab team serves as a ...
0
votes
1
answer
599
views
Try accept a mr in gitlab-ci, sometime get "Branch cannot be merged"
I try to implement a auto workflow in gitlab-ci.yml which provide a stage named "auto_check" that trigger by gitlab merge_request_event.In this stage, it try rebase, and check the mr title, ...
1
vote
0
answers
244
views
How to validate gitlab access token in spring boot?
I'm getting gitlab private token in request param. How to validate this token valid or not.
I have used gitlab4j-api maven dependency but getting error:
java.lang.ClassNotFoundException: javax.ws.rs....
0
votes
0
answers
310
views
Gitlab Pipeline - Read output json from the previous job
Below is my gitlab-ci.yml file, where I have 2 stages.
stages:
- upload
- publish
upload-file:
stage: upload
script:
- <command>
when: manual
publish-file:
stage: publish
...
0
votes
1
answer
192
views
Gitlab CI - Using variables within variable
Hey so this has been killing me for couple of days, I feel I'm missing a minor syntax.
I want to send a slack message with test status from the gitlab pipeline. I'm using stage:allure to get these ...
1
vote
1
answer
75
views
Gitlab. How to configure instance level integrations without WebUI
My standalone Gitlab has an option for integrating Jira.
Gitlab Web UI shows Jira in the list of available integrations under Admin Area > Instance-level integration management.
I would like to ...
0
votes
3
answers
2k
views
How can I use the GitLab API to get detailed time tracking for a specific issue or task?
I found only such a method in the official GitLab documentation.
GET /projects/:id/issues/:issue_iid/time_stats
{
"human_time_estimate": "2h",
"human_total_time_spent&...
0
votes
1
answer
4k
views
Where to Find GitLab API v4 Swagger/OpenAPI Specification?
I'm looking for the Swagger/OpenAPI specification file for GitLab API version 4 mainly for /api/v4/personal_access_tokens. I've searched extensively but couldn't find it.
Can someone please point me ...
0
votes
0
answers
255
views
GitLab "Upload a File" API returns "file is invalid" after POST
I'm trying to upload an image from a WordPress backend to a GitLab project, such that I can use that image in an issue. The image comes from a ContactForm7 form and I store it in WordPress first.
...
1
vote
1
answer
3k
views
Rotating Gitlab's Service Account tokens with specified expiry
I am currently using a Gitlab service account with its token and I want to set up a CICD job that automates the rotation of the service account tokens.
However from the documenation, it seems there ...
-1
votes
1
answer
2k
views
how to trigger and pass parameters to a job in a gitlab ci/cd via gitlab api?
can i pass parameters to a job via REST api call to a gitlab api, to trigger a specific job? I have a python script that runs as a part of the job and i would like to pass parameters to that script.
I ...
0
votes
1
answer
36
views
Retrieve Gitlab Group members which has been assign to other Gitlab Group as Group
Let me explain on the example. Group1 and Group2 have been created in the Gitlab.
For the Group1 we assigned 2 users.
For the Group2 we assigned 4 users.
To retrieve their data assignment details we ...
1
vote
1
answer
209
views
is it possible to invoke a gitlab ci/cd step via rest call?
I'm new to gitlab ci/cd. Looking at the documentation, it suggests that we can define/set up ci/cd steps in our gilab pipeline . also , set up webhook integrations. is it possible to set up a step and ...
0
votes
0
answers
328
views
Using the Gitlab API in Python, how do I retrieve a file from a specific commit
For a project I am trying to retrieve every commit and for each updated file, I want to store the entire file (without the commit syntax, just the vanilla file) and which lines were updated. I am ...