Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 10 13:07

    LinuxSuRen on master

    [maven-release-plugin] prepare … (compare)

  • Apr 10 13:06

    LinuxSuRen on gitlab-branch-source-1.5.5

    (compare)

  • Apr 10 13:06

    LinuxSuRen on master

    [maven-release-plugin] prepare … (compare)

  • Apr 09 21:37
    madriga1 commented #124
  • Apr 09 21:14
    madriga1 opened #132
  • Apr 09 12:19
    basyskom-hlei commented #110
  • Apr 06 16:20
    kenzliang commented #106
  • Apr 05 22:30
  • Apr 05 12:26
  • Apr 02 08:31
    grazius commented #114
  • Mar 26 11:38
    darinpope synchronize #131
  • Mar 26 10:30
    darinpope opened #131
  • Mar 25 12:35
    ielshal commented #115
  • Mar 25 12:27
    ielshal commented #115
  • Mar 25 12:25
    ielshal commented #115
  • Mar 25 09:38
    EugeneLesnov commented #127
  • Mar 25 08:30
    MikeSafonov commented #127
  • Mar 25 01:26

    LinuxSuRen on master

    Fix MR trigger by comment (#120… (compare)

  • Mar 25 01:26
    LinuxSuRen closed #122
Ben Marsden
@benmarsden
Does anyone know how to specify a build strategy of "only trigger a build on merge request comment"? In other words, I only want to build open MRs (never branches), and only when a merge request comment is provided to a specific MR. I thought this was the default, but then I noticed that on initial scan of a new repository, all retrieved branches/MRs get built. Is the skipInitialBuildOnFirstBranchIndexing()the only thing missing to get my desired setup, or is there some other config with buildStrategiesthat I need to make use of?
7 replies
Amit Dar
@moshavnik
can anyone help me with the following issue?
https://issues.jenkins-ci.org/browse/JENKINS-62478
Ben Marsden
@benmarsden
@baymac FYI, something I noticed as a result of jenkinsci/gitlab-branch-source-plugin#91: I believe createWebHookWhenMissing:220 has now introduced a NPE. projectHook.getToken()...returns a null reference, so I'm not sure this if statement is ever entered. Object.equals(x,y) might fit?
1 reply
Peter Leibiger
@kuhnroyal
Does anyone know if there is a way to cancel currently running builds of a MR if a new change/amend is pushed?
3 replies
cognomen
@cognomen
Hi folks. Configuring the plugin for the first time. It seems like pipelines only appear in gitlab if the Personal Access Token used by Jenkins is attached to a Gitlab account with Developer access or higher. (But I couldn't find anything in the docs to verify that.) Does that sound right?
1 reply
jb29237
@jb29237
When using gitlab organization folders...Is there a way to disable auto-building during scanning of the gitlab group? I'd like everything to be indexed, just not built automatically.
Peter Leibiger
@kuhnroyal
When a MR points to a non-existing (anymore) branch, then the project scan stops with a 404 error on this branch, it does not scan further and does not detect new tags. Is this a known issue?
AdamLambet
@AdamLambet
hi when i use plugin ,some pipelines be disabled after i scan gitlab project , but not merged or cancled
nrundle
@nrundle

I'm having trouble figuring out why my multibranch pipeline jobs don't automatically trigger on merge events. I setup a multibranch pipeline and other than pointing it to my gitlab repository, I left the rest of the settings on default. The webhook in my GitLab project was setup automatically. I pressed the "Scan GitLab Project Now" button and it correctly found my existing branches and merge requests and scheduled the necessary jobs.

Then, I made some changes and pushed to a branch which is part of an open merge request. I can see the Merge request UPDATED event in the "Multibranch Pipeline Events" log but it didn't schedule a job. If I press "Scan GitLab Project Now" it detects the changes and schedules the job. I can't figure out what is missing with my setup. This is Jenkins 2.222.3 with GitLab Branch Source plugin 1.5.0 and GitLab 12.10.11-ee

Dax T Games
@daxgames

Setting up Gitlab Group Folder I have the below goals:

  1. Watch specific branches master|MR-\d*(Feature Branching)OR master|prod|stage|dev|MR-\d*(GitFlow) where MR-\d* are merge requests.
  2. ONLY discover the above. DO NOT SHOW/RUN JOBS of Merge Request Source Branches. Example:
    • MR-1 = Merge Feature-1 branch -> 'master' branch should only show/run MR-1 on the Merge Requests tab and master on the Branches tab.
    • Merging the merge request runs the job on master and removes/scratches out the MR-1 on the Merge Requests tab whether I delete the branch or not.

The above does not seem possible. If it is what am I missing?

Golance + MightyDevops
@golance-mightydevops

Hey Guys - I always have "Credentials" empty, even when I click the "Add" button and fill out everything.

I see created credentials in Jenkins / Credentials / System / Global credentials (unrestricted), but the dropdown displays NONE Still.

Plugin version: 1.5.1
Jenkins version: 2.252

Any ideas?

Rishabh Budhouliya
@rishabhBudhouliya

@baymac Hi! I have been trying to create a GitLab api instance using the apiBuilder helper method (ref GitLabHelper).

Is there a way to create a GitLabApi using server url instead of server name?

David Jakob
@djvo_gitlab
hi @baymac , i am struggling with an error during the Organization scan. It always says that Jenkinsfile was found, but is a directory. this error msg is wrong. It looks like the git fetch fails. When I do it manually on the Jenkins server both works SSH and https with personal access token. Any idea?
Alessandro Baldi Vitali
@ABVitali
Hello to everybody. I'm new on this channel and I'm trying to use this useful plugin to setup a well configured jenkins instance.
I would like to ask you if there is a reason why the only authentication method for the gitlab server is the personal access token. Would it be feasible and useful also to have the chance to authenticate through a deploy token that is specific to a project/group instead of needing "personal" tokens?
I hope I'm not saying stupid things and don't hesitate to tell me if it is the case. Thank you in advance and I'm looking forward to hearing from your point of view on this.
Peter Leibiger
@kuhnroyal
afaik deploy tokens don't give API access, thus there is no way to find merge requests etc.
@djvo_gitlab I am getting this message all the time but the scan is still successful.
David Jakob
@djvo_gitlab
@kuhnroyal yes the scan is still sucessfull. But the pipline does not run.
amirmv2006
@amirmv2006
Hello everybody. Does anyone here know, why if I create a parallel pipeline with Jenkins it will create one workspace for each parallel task, but with gitlab-branch-source-plugin it will only keep one workspace? Was that intended or it's just a bug?
Aditya Yavagal
@adityayavagal
Hello everyone I had a query about gitlab branch source plugin, can anyone tell me will this plugin this plugin is not detecting any MR(Merge Requests) on my gitlab server (community edition) can anyone confirm if the plugin works fine on gitlab ce edition
2 replies
nrundle
@nrundle
According to the latest repo update, this plugin is no longer maintained. That's too bad because it was really nice.
Aditya Yavagal
@adityayavagal
Can you suggest me a alternative to it?
Jeremy Cornett
@jeremycornett
@ixolt did you ever resolve that error?
Cannot cast org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory to org.glassfish.jersey.internal.inject.InjectionManagerFactory
2 replies
Ryan Proud
@binarymelon
Getting the following execption on the project configuration page trying to fill the credentials dropdown.
java.lang.LinkageError: com/cloudbees/plugins/credentials/domains/URIRequirementBuilder at io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource$DescriptorImpl.doFillCredentialsIdItems(GitLabSCMSource.java:792) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766) Caused: javax.servlet.ServletException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:816) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
Toh Rong Quan
@keegantoh_gitlab
Anyone facing issue with commenting on merge request does not trigger the build after setting up "Trigger build on merge request comment"
2 replies
Toh Rong Quan
@keegantoh_gitlab
Anyone face issue with multibranch not respecting "Custom script - marker file". During branch indexing, all branch's pipeline are generated even when there is no "marker file" in the branch.
Jeremy Cornett
@jeremycornett
I am using job DSL to configure all my multibranch pipelines with gitLabSCMSource (version 1.5.1) in Jenkins running in a docker container (tag 2.235.3-jdk11). I've set the id so indexing caused by the seed job doesn't rebuild branches unnecessarily (see https://issues.jenkins-ci.org/browse/JENKINS-43693). Nevertheless, if I restart the Jenkins docker container, the next time the dsl seed job is rerun, all of the pipeline jobs run their indexing. The log shows "Branch reopened" for just the Gitlab default branch on each job, and it thus triggers a build of only that branch. I can't figure out why or how to prevent it. Any suggestions?
djvo
@djvo
Does anyone know whta to do when in gitlab the webhook test fails? Webhook expired... I cannot trigger jenkins via webhooks. in the gitlab prod logs there is also nothing that indicates a networks settings problem. Could it be thet the branch source plugin does not work well receiving the webhooks?
Viacheslav Dubrovskyi
@dubrsl
Hi. Does anybody use gitlab-branch-source plugin?
Yes, stupid question. :( But I can't figure out its code in any way. And I have questions about it.
thetechoddbug (José María Gutiérrez)
@TheTechOddBug
Hi @/all. Is there a way to look for all projects in a tree of groups, not only the projects that are directly containing in a group/subgroup? I mean, not only child projects, but projects that are inside subgroups of the selected group.
thetechoddbug (José María Gutiérrez)
@TheTechOddBug

Hi. I'm facing a couple of issues (I'm not sure if it is right to name them as that). I'm creating a GitLab Group job in Jenkins and using the "Discover subgroup projects" feature and getting a truncated path inside workspace at least for length greater than 32 chars (for example, using ABCDE_f_abcde_de_s1_p1_master is working but ABCDE_Dev_abcde_dev_sg2_spa2_master is not providing all that and creating a folder in workspace like de_dev_abcde_dev_sg2_spa2_master where ABCDE and abcde es the name of first pareng group in GitLab, and "Dev" and "sg2" are nested subgroups inside ABCDE group and "spa2" is the project).

The other much more harmful issue is that unless scanning is working fine and founding the existing projects (not so many existing in this proof-of-concept), the process is not checking-out the code of the branches that it finds, so, the build-project task I'm trying to implement is not taking place due to not finding required source-code to build.

Please, could someone give me some idea about what is wrongly done or how can I achieve what i need? (@baymac, @markyjackson-taulia).

amit-gueta
@amit-gueta
Hi all, does someone manage to change the name of the MRs' jobs? I want to change it from "mr-${num}" to "mr-${mrTitle}" to be more informative.. @baymac
Denham Coote
@denhamcoote_gitlab

It appears this channel has become defunct, but in the hopes that someone sees this.... When my pipeline runs, I would like to be able to access the 'server', 'owner' and 'project' fields set in the job config page. Ultimately I could manage with just the project's git/http address even.

I am NOT storing my Jenkinsfile in the same repo as the code I am building (I use the 'Remote Jenkinsfile Provider' plugin), so I need to do an explicit checkout once inside the pipeline. I cannot query the scm step as that points to the repo containing my pipeline (and not the repo I want to build).

Can anyone point me in the right direction? How do I access the parameters configured inside the job config?

Denham Coote
@denhamcoote_gitlab
(or perhaps that's a future enhancment? Expose the repo/project as an env var to the pipeline?)
Gregory Anne
@zg2pro
Hi, can anyone provide me support for the plugin ? I'm running into "Could not update folder level actions from source" 404 errors ?
Gregory Anne
@zg2pro
I can't make it work
if you can help please get in touch with me
troppoli
@troppoli
I can’t seem to find [skip-ci] option so running my pipeline triggers my pipeline! (The pipeline updates versions as a first step) Anyone know where this is or have a work around?
Brice Copy
@bcopy

Hi, anyone with experience with using job DSL in jcasc to scan a gitlab group upon startup ?
I get this NPE with the latest Jenkins (2.281) and plugin versions, but I can reproduce it with various LTS installations too :

ERROR: [Wed Feb 24 17:41:31 CET 2021] Could not fetch sources from navigator io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator@7e1b3efb
java.lang.NullPointerException
    at io.jenkins.plugins.gitlabbranchsource.GitLabHookCreator.isTokenEqual(GitLabHookCreator.java:229)
    at io.jenkins.plugins.gitlabbranchsource.GitLabHookCreator.createWebHookWhenMissing(GitLabHookCreator.java:220)
    at io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator.visitSources(GitLabSCMNavigator.java:273)
    (...)
    at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:1033)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)

If I go to MANAGE JENKINS, then press SAVE once, the Gitlab group scan works again.... any ideas ? :confused:

1 reply
EugeneLesnov
@EugeneLesnov
Hello everyone!
Do not consider it rude or impatience..I'd like to know how often PRs a reviewing by maintainers with write access into repository?
Sverre Moe
@DJViking
If I want to create a Feature Request. Should I do it on GitHub Issues, or Jenkins JIRA under Component gitlab-branch-source-plugin?
Sverre Moe
@DJViking
Seems I don't have to. Others have reported a similar feature request
https://issues.jenkins.io/browse/JENKINS-58445
Lack of Stage name in GitLab pipelines.
GitLab Plugin reports them, but not GitLab Branch Source Plugin.
Denham Coote
@denhamcoote_gitlab
Sadly, as is the way with many well-intentioned plugins, this seems to have been mothballed. Pity, looked like it had a lot of potential.
Liam Newman
@bitwiseman
@denhamcoote_gitlab @EugeneLesnov @DJViking It is not mothballed. It needs active contributors and maintainers. I'm happy to help in my spare time, but that is very limited.
Denham Coote
@denhamcoote_gitlab
@bitwiseman That's encouraging. I'm an end user only, and appreciate that something like this takes effort. I look forward to future updates in that case.
Sverre Moe
@djviking:matrix.org
[m]

If I have some spare time I might take a look, but it seem it might be a big job to implement JENKINS-58445.

This is my first try to join in with Element matrix.
Seems I got a new user account, not the one I used wirh gitter.

Sverre Moe
@djviking:matrix.org
[m]
:point_up: Edit: If I have some spare time I might take a look, but it seem it might be a big job to implement JENKINS-58445.
Sverre Moe
@DJViking
This plugin is vital to fight against GitLab CI, and make Jenkins a competitive choice for CI/CD.
Most who use GitLab wants to consolidate everything into GitLab, including CI. I can't blame them. It sure makes it easier to use only one tool.
I also see the same tendencies in my own company where we just have moved to GitLab, but still use Jenkins for CI/CD.