Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:01

    dependabot[bot] on maven

    (compare)

  • 01:01
    dependabot[bot] closed #637
  • 01:01
    dependabot[bot] commented #637
  • 01:00
    dependabot[bot] labeled #640
  • 01:00
    dependabot[bot] labeled #640
  • 01:00
    dependabot[bot] opened #640
  • 01:00

    dependabot[bot] on maven

    Bump plugin from 4.47 to 4.52 … (compare)

  • Nov 28 01:31

    dependabot[bot] on maven

    (compare)

  • Nov 28 01:31
    dependabot[bot] closed #635
  • Nov 28 01:31
    dependabot[bot] commented #635
  • Nov 28 01:31
    dependabot[bot] labeled #639
  • Nov 28 01:31
    dependabot[bot] labeled #639
  • Nov 28 01:31

    dependabot[bot] on maven

    Bump bom-2.346.x from 1595.v8c7… (compare)

  • Nov 28 01:31
    dependabot[bot] opened #639
  • Nov 25 01:00

    dependabot[bot] on maven

    (compare)

  • Nov 25 01:00
    dependabot[bot] closed #622
  • Nov 25 01:00
    dependabot[bot] commented #622
  • Nov 25 01:00
    dependabot[bot] labeled #638
  • Nov 25 01:00
    dependabot[bot] labeled #638
  • Nov 25 01:00

    dependabot[bot] on maven

    Bump spotless-maven-plugin from… (compare)

fugkco
@fugkco:matrix.org
[m]
@bitwiseman: thanks! I will try that. Figured here would be better considering GH branch source plugin was culprit (at least from what I understood).
Tom Jordan
@tdjordan_gitlab
Good Afternoon,
Does the "script path" field accept a glob pattern?
eg:
"app/*/Jenkinsfile"
1 reply
Koby
@kobynet
Hi all, is it possible to change how pull-request job to be source branch name instead of PR-###?
Lukas Biernat
@lukas-biernat
Hey, I am currently trying to only build Pull requests on certain actions of some Events. For Example, I have activated the webhook for pull_requests on github, this means that every action like synchronize will trigger the Pr build, but I only want to build on the opened action. Is this something you would be open to implement if I would create a PR for this?
graingert
@graingert:matrix.org
[m]

so aparantly github changed the permissions needed to access the list of collaborators on a github project:

Thanks for reaching out to GitHub Support!
There was a change in the permissions needed to view collaborators in the API so that it matches what is required to view them in the web UI (the admin permission level).
At this time, only the users with admin permission will be able to access the endpoint. Sorry for the inconvenience that may have caused you.We do have some internal discussions going on about this change and I'll come back to you when I have some more information.
Regards,
Oluwaseun
GitHub Support

Steven Foster
@sfosterdw
I have a tentative PR with a general approach to fix an issue I'm having with branch indexing interrupting itself partway through jenkinsci/github-branch-source-plugin#471
Steven Foster
@sfosterdw
Does anyone have any ideas where I could redirect the above PR for attention/discussion?
Tim Jacomb
@timja
i've requested the maintainers review
Steven Foster
@sfosterdw
cheers
fugkco
@fugkco:matrix.org
[m]

Reposting for visibility:
Hey all, for some reason git clone isn't an approved script:

Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (org.jenkinsci.plugins.workflow.cps.CpsClosure2 git java.util.LinkedHashMap). Administrators can decide whether to approve or reject this signature.

That doesn't seem right, is there a reason for this? I'm just doing a normal git clone:

                    git credentialsId: 'xxxx',
                        url: 'xxxx',
                        changelog: false,
                        poll: false

Feels weird having to manually add this to the approved methods, or is that just me?

Shawn Starr
@spstarr
@bitwiseman Hey Liam, for PR https://github.com/jenkinsci/github-branch-source-plugin/pull/421/files we have found an issue with Github EMU.. apparently the person from the PR's Regex is wrong... I assume they were testing Github EMU prior to launch but the username format changed after....
Tim Jacomb
@timja
in case anyone has any ideas, we're having a perf issue with lots of github org folders: https://issues.jenkins.io/browse/JENKINS-68116
2 replies
Flavius
@flaviusLinus
Hi, i have a jenkins multibranch pipeline triggered from github webhook, but all the time a PR is merged to master the remaining open PRs start automatically and are build. Is there any chance to prevent PullRequest to start automatically?
Sarath Addanki
@asknet
Hi all, can I create, two multibranch pipeline one for dealing with pull requests and one for merges to target branch. I tried this, but other job isn't receiving triggers
tburow
@tburow
Good Morning - hoping this is an easy answer - I'm trying to set up an automatic build to build the latest release tag on a scheduled basis. My use case is that I have a process to generate "golden Docker" images that are patched and security hardened and we regenerate those on a 7 day cycle.
Vishal Baghla
@VishalBaghla
Hey Folks, I have multiple multibranch pipelines and a few days back, I added auto-trigger for tags for a couple of release multibranch pipelines, with help of "github-branch-source-plugin". After adding this plugin, all release pipelines which are set to trigger from tag are kind of stuck in branch indexing phase. Even if I manually abort all jobs, it will again initiate scan. I already tried restart but that didn't help. Any suggestions to fix this issue?
jahnavireddy5
@jahnavireddy5
I have a similar issue what @VishalBaghla had on multibranch pipeline. Can someone please help!
Jerry Wiltse
@solvingj
This issue was closed 3 years ago but I'm seeing similar behavior on latest version: https://issues.jenkins.io/browse/JENKINS-46094
Besides configuring a multi-branch pipeline to use Checkout over SSH, is there anything else that MUST or MUST NOT be true to have Jenkins use SSH for GIT operations? I'm using Repository HTTPS URL so that webhook creation and PR discovery and all that will work properly. But, it seems like Checkout over ssh should be independent of that.
Jerry Wiltse
@solvingj
Nevermind, this was my mistake. Was looking at the configuration of a copy of the job which didn't have checkout-over-ssh.
Devin Stallings
@stallings
Hey all, at what point does the access token get refreshed? Does this only happen when calling withCredentials or does it happen in the background? I see the token is cached but it isn't clear to me what happens when it expires. Trying to determine if I only need to call withCredentials once or if I should call every time I make a request to github.
I think you should call withCredentials each time and then it will use either a cached token or refresh it for you
Devin Stallings
@stallings
Ok sounds good. Thanks for the help!
iamtodor
@iamtodor
Hello people!
First of all, thank you for the provided solution jenkinsci/github-branch-source-plugin#615
I'm currently working on adapting it across our organization. I noticed it was released a couple of months ago https://github.com/jenkinsci/github-branch-source-plugin/releases/tag/github-branch-source-2.11.2 since v2.11.2 version.
Could you please point me to its usage? I walked thru the page https://docs.cloudbees.com/docs/cloudbees-ci/latest/cloud-admin-guide/github-branch-source-plugin and I didn't find anything
iamtodor
@iamtodor

Hello people!
First of all, thank you for the provided solution jenkinsci/github-branch-source-plugin#615
I'm currently working on adapting it across our organization. I noticed it was released a couple of months ago https://github.com/jenkinsci/github-branch-source-plugin/releases/tag/github-branch-source-2.11.2 since v2.11.2 version.
Could you please point me to its usage? I walked thru the page https://docs.cloudbees.com/docs/cloudbees-ci/latest/cloud-admin-guide/github-branch-source-plugin and I didn't find anything

here in another PR, I found the usage https://github.com/jenkinsci/github-branch-source-plugin/pull/416#issuecomment-855282523

Unfortunately, once you changed the state from draft to ready_for_review the build is not triggered. Is it supposed to be?
iamtodor
@iamtodor

So basically, there are steps I follow:

  1. I submit PR as a draft: Jenkins does not run
  2. I change the PR state from draft to ready_for_review: Jenkins does not run
  3. I do a dummy commit: Jenkins does run
  4. I change the PR state from ready_for_review to draft
  5. I do a dummy commit: Jenkins does not run
  6. I change the PR state from ready_for_review to draft: Jenkins does not run
  7. I do a dummy commit again: Jenkins does run

Is there a way to run the Jenkins job by simply changing the state from draft to ready_for_review without the need to submit a dummy commit?

Tim Jacomb
@timja
dumb question, do you have that event selected in your webhook?
iamtodor
@iamtodor
@timja it's not a dumb question at all! It's a good question and you gave me a direction here. I will try to find it out. However, if I'm not mistaken, if I change the name of PR Jenkins does run
Tim Jacomb
@timja
likely a different epic
event*
seems it's all in this pull request event:
image.png
iamtodor
@iamtodor
@timja yeah, I confirm I found the same in my webhook. So I need to configure it on Jenkins side, right?
iamtodor
@iamtodor
@timja I didnt find that we are using webhooks. We are using GitHub Organization: The server to connect to. The list of servers is configured in the Manage Jenkins » Configure Jenkins › GitHub Enterprise Servers screen.
Is there a way to implement achieve the goal in this case?

@timja yeah, I confirm I found the same in my webhook. So I need to configure it on Jenkins side, right?

Here was wrong, and then I verified and we use webhooks for other tools such as slack, etc. Not Jenkins

iamtodor
@iamtodor
if it matters we use github-branch-source:2.11.4 version
iamtodor
@iamtodor
I noticed that Jenkins already listens to the name of PR: if the name has been changed then Jenkins would rebuild this PR
Tim Jacomb
@timja
you likely need webhooks for it
iamtodor
@iamtodor
@timja so to use this plugin in general I don't need a hook, but for checking draft/ready_for_review PR status I need to setup a hook?
Tim Jacomb
@timja
you're highly recommended to use a webhook
polling costs a lot of rate limit and is not a great user experience as it will be delayed
iamtodor
@iamtodor
@timja currently it is how it is. Jenkins is under another DevOps team. I need to set up this logic with the least effort. So now it works somehow without hooks. At least I don't see a Jenkins hook under the repository settings. I don't want to completely change the logic, but rather modify it according to my needs
iamtodor
@iamtodor

@timja excuse me if I ask sort of silly questions. I am not very familiar with all that things, so I'm trying to figure it out, while there is not much documentation in the readme or plugin main page :)
I see the following logs

[2022-11-14T14:03:02.100Z] Pull request #1554 opened
[2022-11-14T14:03:02.178Z] Connecting to https://api.github.com using GitHub App for Jenkins pipelines
[2022-11-14T14:03:03.157Z] Obtained Jenkinsfile from blah-blah+blah (blah)

so I think our devops setuped GitHub-Jenkins communication not by webhooks. Is configuring it thru the webhooks the only way or it's the best way? If second, is there an easier and faster way to set it up?

iamtodor
@iamtodor
@timja is there a chance that Jenkins does not listen to PR status changes due to a plugin version? We use github-branch-source:2.11.4, I noticed firstly you released this logic https://github.com/jenkinsci/github-branch-source-plugin/releases/tag/github-branch-source-2.11.2 1.5 years ago and then in the very latest release https://github.com/jenkinsci/github-branch-source-plugin/releases/tag/1695.v88de84e9f6b_9
Tim Jacomb
@timja
you need 1695.v88de84e9f6b_9 @iamtodor
iamtodor
@iamtodor
@timja got you, thanks for the confirmation!