From 0d98d20c3afa08eb3b6c3a4ceab0e99a30b7ac96 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 4 Jun 2018 23:02:16 -0400 Subject: [PATCH] Add Jenkins GitHub integration instructions Change-Id: I50c48911a62a4dc618d414cf9681a78214939a8d Signed-off-by: Thanh Ha --- docs/infra/jenkins.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/infra/jenkins.rst b/docs/infra/jenkins.rst index 8c63905..ee48f48 100644 --- a/docs/infra/jenkins.rst +++ b/docs/infra/jenkins.rst @@ -4,6 +4,8 @@ Jenkins ####### +.. _jenkins-upgrade: + Upgrading Jenkins ================= @@ -33,3 +35,33 @@ Follow these steps to update Jenkins: #. Restart the server itself ``systemctl reboot`` #. Remove Shutdown mode from Jenkins (https://jenkins.example.org/cancelQuietDown) + +.. _jenkins-github: + +GitHub Configuration +==================== + +Jenkins requires admin level configuration to work with GitHub. + +#. Create a GitHub account for Jenkins to use + + The user needs to have Full Admin access to the GitHub Organization that + Jenkins will manage, this is so that Jenkins can automatically manage the + hooks. + +#. Navigate to ``https://jenkins.example.org/configure`` +#. Under ``GitHub Servers`` click *Advanced* > + *Manage GitHub actions* > *Convert login and password to token* +#. Choose ``From login and password`` and enter the github-jenkins account details +#. Click Create token credentials +#. Under ``GitHub Servers`` click *Add GitHub Server* and configure the following: + + .. code-block:: none + + Name: + API URL: https://api.github.com + Credentials: + Manage hooks: true + GitHub client cache size (MB): 20 + +#. Click ``Re-register hooks for all jobs`` -- 2.16.6