by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Avner Sorek
@avnerenv0
what do you mean about webhooks?
Lee Tickett
@leetickett_gitlab
so within a project you can configure webhooks (under project settings)
they will call a webservice when tihngs happen like comments, commits, merges etc
you would have to create some sort of webservice that can listen for these hooks and act accordingly though :(
Avner Sorek
@avnerenv0
right.
So the only way to get this notification is using the 'Merge request events' webhook?
Lee Tickett
@leetickett_gitlab
that's the only thing that springs to my mind, but someone else may have ideas
Avner Sorek
@avnerenv0
OK. Thank you
Lee Tickett
@leetickett_gitlab
i guess when an MR is merged it causes a pipeline to run in the destination branch
so you could try and do something clever with the CI which checks all running test environments and cleans up any which don't have open mrs anymore maybe?
Avner Sorek
@avnerenv0
ohh that's harsh, I'd rather use the webhook
Lee Tickett
@leetickett_gitlab
yes probably prefereable
Avner Sorek
@avnerenv0
Don't think that's gonna work out for me. Thanks for the help anyway.
Lee Tickett
@leetickett_gitlab
maybe someone else will have a better idea... i think it sounds like you are basically doing review apps
but i'm not sure if there is a magic way that review apps work and are disposed etc
Avner Sorek
@avnerenv0
Hmm I didn't know that "review apps" is a thing. I'll look into it. Thanks
Artem Zhirkov
@ArtemZ1_gitlab
Hello! I have issues with self managed gitlab runner which picks up jobs from gitlab.com

WARNING: Checking for jobs... failed                runner=Znfnajf8 status=couldn't execute POST against https://gitlab.com/api/v4/jobs/request: Post https://gitlab.com/api/v4/jobs/request: read tcp 100.96.8.40:35810->172.65.251.78:443: read: connection reset by peer
Is it something with the runner that I should investigate or it makes sense now to contact gitlab support/
kalidasya
@kalidasya
hello everyone, on the UI of a pipeline page pipelines/1234 I can see upstream information, but none of the APIs provide it, or I cannot find where. I checked the pipeline and jobs part. Can someone point me to the API where I can get the upstream info of a pipeline?
kalidasya
@kalidasya
found it, 2 years old: gitlab-org/gitlab#21495 I guess its not gonna happen anytime soon :(
Jimbo Connors
@gomezramirez_gitlab
Hi, newbie here . I have my project running is a jekyll website https://gitlab.com/gomezyramirez/perso-web and I want to publish it under gitlab.io Help please
Valentino Pistis
@vpistis-ey_gitlab

hello! I have an issue with CI pipeline into gitlab.com:

Executing "step_script" stage of the job script
00:00
$ docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://registry.gitlab.com/v2/ failed with status: 503 Service Unavailable
ERROR: Job failed: exit code 1

can someone help me please?
thanx

Valentino Pistis
@vpistis-ey_gitlab
Łukasz Groszkowski
@falxcerebri_gitlab
I'm wondering does anyone uses ansible to setup runners: https://docs.ansible.com/ansible/latest/modules/gitlab_runner_module.html#examples
I don't think these are up to date or maintained at all
Jerry
@solvingj
Is it possible to set the gitlab root password via the shell in a script?
We are trying to setup a simple reproducible demo environment via a dockerfile, and we have a bootstrap problem where we would like to bypass auth if possible.
tonka
@tonka3000_gitlab
hey @solvingj
version: "3"
services:
web:
image: "gitlab/gitlab-ce:latest"
restart: always
hostname: "gitlab.example.com"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
gitlab_rails['initial_root_password'] = '12345678'
ports:
  - "80:80"
  - "443:443"
  - "22:22"
that's a simple docker-compose file
Jerry
@solvingj
Thanks @tonka3000_gitlab
Andrew Davison
@davisoa_re2_gitlab
My company wants to be anti-racist in words and actions. As such, we have a desire to move away from using the "master" branch name as the "main" of development. Since we have 200+ projects, doing this would be incredibly time consuming if done manually. Has anyone else worked to create anything that could change all of these in one fell swoop using the API (or some other method)? This would require adding a new branch to each project, deleting "master" and updating the project settings to change the protected branch to "main" instead of "master" (and other things I'm probably not thinking about) Thanks for any help and guidance you can provide.
Sharath52
@Sharath52
Hi All.On deleting images present in the registry from the ui of gitlab it's not deleted in the backend .. how do we fix this?
Oliver Schrenk
@oschrenk

I'm trying to build a multi-project CI/CD pipeline.

I like the syntax of triggering downstream jobs in .gitlab-ci.yml:

downstream:
  stage: downstream
  variables:
    UPSTREAM_PROJECT: $CI_PROJECT_PATH
    UPSTREAM_SHORT_SHA: $CI_COMMIT_SHORT_SHA
  trigger:
    project: acme/deployment

But, how would I inject a dynamic variable into acme/deployment job? I want to read version number from the build, and then pass it down.

As it is a bridge job I can't use script, so I can't read it within the same job. I thought maybe a global

before_script:
  - export APP_VERSION=$(cat versions/$APP_NAME.txt)

But that does not work (which makes sense to me, since it not executed on a runner).

But now I am out of ideas. How would I inject dynamic content into the bridge job? Is it possible at all ? Or do I need to consider other solutions? Suggestions?

PaulVerhoeven1
@PaulVerhoeven1
hi guys!
is there a way to connect GitLab with Keycloak?
so that you sign in with your Keycloak credentials in GitLab
Lee Tickett
@leetickett_gitlab
Hi @PaulVerhoeven1 I think so, looks like it supports omniauth openid?
PaulVerhoeven1
@PaulVerhoeven1
i am working on it
now i am stuck on the redirect URI
what is that for gitlab ?
Aaron Dunlap
@badloop_gitlab
Is it possible to add multiple labels to the filter for a board? i.e. "Bug::S1 Or Bug::S2"
Lee Tickett
@leetickett_gitlab
greg nicol
@gregn-nom_gitlab
What's up with the CI/CD Variables environment dropdown? Every time I try to change the environment, the whole variables dialog closes. Tried Chrome & Firefox
PaulVerhoeven1
@PaulVerhoeven1
@leetickett_gitlab that doesn't work for me
Lee Tickett
@leetickett_gitlab
I wonder if it needs to be https?
we are uesing AzureAD and I think that's the URL we use- just going to check
PaulVerhoeven1
@PaulVerhoeven1
could that be the problem then ?
my gitlab doesn't have any certificates
Lee Tickett
@leetickett_gitlab
it's only a guess i'm afraid- i'm just thinking that exchanging tokens etc is something that is quite likely to require a secure connection