HB
2018-10-28 21:07:44 UTC
All,
I am completely new to Jenkins but am tasked with getting a working
environment up and running.
Everything appears to running well as follows:
RHEL 7.5
Jenkins ver 2.148
Installed using the below yum repo:
[jenkins]
name=Jenkins
baseurl=http://pkg.jenkins.io/redhat
gpgcheck=1
I have it configured to use Active Directory for user authentication and
roles.
My questions revolve around getting Jenkins connected to GitHub. I am
following these steps:
https://gist.github.com/misterbrownlee/3708738
I have created a 'utility user' (say git-jenkins) in GitHub that will
ideally be the user that Jenkins uses to connect to GitHub. I also have
created a key pair for the connection. Since Jenkins runs as user
'jenkins' on the server, I created the key pair as this user and imported
the public key to the 'git-jenkins' utility user in GitHub.
I also set:
Global Config user.name Value
Global Config user.email Value
to the 'git-jenkins' GitHub utility user via: Manage Jenkins --> Configure
System.
I am trying to follow these steps:
- Make sure the Manage Jenkins > Configure System has the right path to git
- Set the global git user.name and user.email to match your global config
options
- Configure GitHub Web Hook to Manually manage hook urls
- Click the (?) icon next to the manual option and copy the hook URL you
see there
- Optionally set the service account email as the Jenkins sender email
address
However, I am not able to successfully 'test connection' to GitHub in
Manage Jenkins --> Configure System..
I am able to clone the repository from the command line with a different
user than the 'git-jenkins' utility user via Jenkins. But since the
'jenkins' user on the server does not have a login shell out of the box, I
am unable to test from the command line.
Can anyone point me in the right direction here as to what I might be
missing? I hope I have not confused the situation too much.
Thanks in advance,
HB
I am completely new to Jenkins but am tasked with getting a working
environment up and running.
Everything appears to running well as follows:
RHEL 7.5
Jenkins ver 2.148
Installed using the below yum repo:
[jenkins]
name=Jenkins
baseurl=http://pkg.jenkins.io/redhat
gpgcheck=1
I have it configured to use Active Directory for user authentication and
roles.
My questions revolve around getting Jenkins connected to GitHub. I am
following these steps:
https://gist.github.com/misterbrownlee/3708738
I have created a 'utility user' (say git-jenkins) in GitHub that will
ideally be the user that Jenkins uses to connect to GitHub. I also have
created a key pair for the connection. Since Jenkins runs as user
'jenkins' on the server, I created the key pair as this user and imported
the public key to the 'git-jenkins' utility user in GitHub.
I also set:
Global Config user.name Value
Global Config user.email Value
to the 'git-jenkins' GitHub utility user via: Manage Jenkins --> Configure
System.
I am trying to follow these steps:
- Make sure the Manage Jenkins > Configure System has the right path to git
- Set the global git user.name and user.email to match your global config
options
- Configure GitHub Web Hook to Manually manage hook urls
- Click the (?) icon next to the manual option and copy the hook URL you
see there
- Optionally set the service account email as the Jenkins sender email
address
However, I am not able to successfully 'test connection' to GitHub in
Manage Jenkins --> Configure System..
I am able to clone the repository from the command line with a different
user than the 'git-jenkins' utility user via Jenkins. But since the
'jenkins' user on the server does not have a login shell out of the box, I
am unable to test from the command line.
Can anyone point me in the right direction here as to what I might be
missing? I hope I have not confused the situation too much.
Thanks in advance,
HB
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68a52bb7-f242-4cd4-9e53-4792259958fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68a52bb7-f242-4cd4-9e53-4792259958fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.