Questions tagged [jenkins-github-plugin]

54 questions
58
votes
7 answers

How to use Github Personal Access Token in Jenkins

I can ask this question in many ways, like How to configure Jenkins credentials with Github Personal Access Token How to clone Github repo in Jenkins using Github Personal Access Token So this is the problem The alternate solution that I am aware…
Dupinder Singh
  • 7,175
  • 6
  • 37
  • 61
10
votes
1 answer

How to clone a github repository using Jenkins pipeline script?

I am relatively new to the CI/CD concept. I am trying to clone a Github repository using declarative pipeline in Jenkins (without SCM). If i do it without any credentials then I can see in the console output that Jenkins is already trying to clone…
8
votes
1 answer

Jenkins build fail for PR from GitHub

I'm using jenkins pipeline to build my github project. When I raise a pull request (PR) on GitHub, its creating a job "pr-head" which fails all the time with below error Let me know if you have any suggestions for this Even the answers in Git…
7
votes
4 answers

Jenkins - Github Plugin - Using Personal Access Token (required after Aug 13, 2021 change)

We were using GitHub plugin with Username and password credentials so far in our Jenkins setup. However, after Aug 13th, 2021, this stopped working raising this error: stderr: remote: Support for password authentication was removed on August 13,…
Lakshmi
  • 81
  • 1
  • 1
  • 4
7
votes
4 answers

How to use github oAuth token with Git plug-in Jenkins

I have been using Git Plugin in Jenkins to pull the source code from the GitHub repository. I have been using UserName and Password for authentication However, GitHub has announced Deprecation Notice: GitHub will discontinue password…
LP13
  • 30,567
  • 53
  • 217
  • 400
5
votes
1 answer

Polling ignores commits in certain paths in multibranch pipeline

I have a multibranch pipeline with a project that I want to build only if there are changes in a specific directory. I know that the Polling ignores commits in certain paths option can do exactly that but I can't find this option in the multibranch…
Amir Rossert
  • 1,003
  • 2
  • 13
  • 33
5
votes
5 answers

Failed to update Gitlab commit status for project '120': HTTP 403 Forbidden

In jenkins I'm seeing the following error message in the jenkins console while building any of our projects that are integrated with Gitlab. Failed to update Gitlab commit status for project '120': HTTP 403 Forbidden Would any of you guys happen to…
4
votes
2 answers

Jenkins multibranch pipeline triggers pipeline on unrelated branches

I have a problem with Jenkins multibranch pipleline using JenkinsFile and the GIT plugin. The problem is that every push to staging branch triggers the pipeline of master as well. The desired behavior is that push to staging branch only triggers the…
3
votes
1 answer

Polling from multiple repositories in Jenkins

I couldn't find an answer for my question on stack, sorry if it is a duplicate. Let's say I have repo A on Github, where my Jenkinsfile is, and repo B on Github, where all my source code is. For my job, I've set 'Pipeline script from SCM' from repo…
3
votes
1 answer

Git | Jenkins | Permission denied (publickey)

We have a common LDAP account/user. We plan to use this user to configure Jenkins for our team. I logged in to the machine/VM using my login and installed Jenkins. Then I generated ssh keys from my account only but the email id I provided while…
miserable
  • 697
  • 1
  • 12
  • 31
3
votes
0 answers

Jenkins "github organization" without Jenkinsfiles - Possible?

We are using the github organization plugin to automatically discover and build a large set of repositories. These repos should all run the exact same pipeline and we would like to have control over it on the devops level. I.e. not having the…
3
votes
1 answer

Jenkins differentiate between PR and merge webhooks

So we can have only one Jenkinsfile per job. And we share the same job for both merge and PR webhooks from github. How can we easily detect if the webhook for a commit pushed in a PR or for PR merge?
Behlül
  • 3,412
  • 2
  • 29
  • 46
2
votes
0 answers

Jenkins and Github plugin, empty repos [] while trying to report status on github commit

I'm trying to set github commit status during my steps of Jenkins config. My Jenkinsfile looks like: void setBuildStatus(String message, String state) { step([ $class: "GitHubCommitStatusSetter", reposSource: [$class:…
2
votes
2 answers

Trigger GitHub Actions from Jenkins Pipeline using API/Actions Pluginfor Jenkins

I want to trigger the GitHub Actions using Jenkins Pipeline or Jenkins Job and send some build parameters as input for the GitHub Actions. I am doing this since there is no option of dropdown list for the GitHub Action Input parameters.
vik_nag
  • 415
  • 1
  • 5
  • 7
2
votes
2 answers

How to change "default" Jenkins build status label on GitHub?

What do I have: Jenkins job (Freestyle Project). Job trigger is GitHub Pull Request Builder GitHub repository Webhook to trigger the Jenkins job What do I want: change "default" label from the screenshot below to something more specific, lets say,…
Tarasovych
  • 2,228
  • 3
  • 19
  • 51
1
2 3 4