Questions tagged [jenkins-github-plugin]

54 questions
0
votes
2 answers

Why is the $payload an empty variable?

Software Versions: github-plugin version 1.29.3 Jenkins ver. 2.163 nginx reverse proxy Current State No communication issues, and build triggers from the push event. However no values in $payload GitHub Configuration: Github Webhook: on…
winn j
  • 442
  • 3
  • 17
0
votes
1 answer

Jenkins2 - Getting error while trying to execute a Git command using 'Execute Shell'

I'm using Jenkins 2 and trying to execute below GIT command using 'Execute Shell' in Build section. git config --global user.email $GITHUB_LOGIN git config --global user.name $GITHUB_LOGIN git tag -a $BUILD_NUMBER -m "Version $BUILD_NUMBER" git push…
Raj
  • 1,467
  • 3
  • 23
  • 51
0
votes
1 answer

GitHub Integration

Am trying to integrate GitHub with Jenkins. I recieve the below error message, under configuration: Failed to connect to repository : Command "git.exe ls-remote -h https://github.com/Ajith-Raman/Sample_Repo.git HEAD" returned status code…
0
votes
0 answers

trigger open source jenkins job for a github merge

This is our tool set: jenkins: Open source Jenkins running on AWS server - 2.107.2 Github: 2.13.3 version Requirement: We need to create a GitHub hook in such a way that, if anyone merges the branch (create pull request and merge it), then it should…
0
votes
1 answer

Pass variables to jenkins from workspace

I am trying to set up builds on Jenkins. When the build is successful, I push a tag of the build using the Post build Action Git Publisher. Until Now, these have been done manually, with the tag being given the version number, A.B.C.D (which comes…
Tricky
  • 3,791
  • 3
  • 10
  • 23
0
votes
1 answer

github event to jenkins

I have a GitHub webhook triggering a Jenkins pipeline job. I've set 2 events that triggers the webhook (like pull requests and deploy). Once my Jenkinsfile triggered, I want to run different stages according to the type of event that triggered the…
user757586
  • 11
  • 1
  • 4
0
votes
1 answer

Add jeninks local user readonly account when using Global GitHub OAuth Sec

How can I add a limited access account for jenkins automation when I'm using Global GitHub OAuth Settings? I'm using GitHub OAth for login to jenkins and I have python jenkinsapi scripts that I want to run as a user with read only access. At…
Eva Brigid
  • 123
  • 14
0
votes
1 answer

Github project setup in Jenkins 2.x

I have a Multibranch Pipeline project which configures Jenkins Jobs based on a Jenkinsfile per branch. The sourcecode is hosted on a Github Enterprise Server. When I view the configuration of a branch which is created by the Jenkinsfile, I noticed…
Christopher
  • 9,682
  • 7
  • 47
  • 76
-1
votes
2 answers

Prevent the jenkins build if previous successful build commit and present commit is same

I want to prevent the Jenkins build if the present commit is same as the previous sucessful build commit. Is there any way to check the present build and previous build in Jenkins. I'm using Jenkins file. In simple words I don't want jenkins to…
1 2 3
4