Add Jenkins GitHub integration instructions 85/10985/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 5 Jun 2018 03:02:16 +0000 (23:02 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 5 Jun 2018 04:07:44 +0000 (00:07 -0400)
Change-Id: I50c48911a62a4dc618d414cf9681a78214939a8d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/infra/jenkins.rst

index 8c63905..ee48f48 100644 (file)
@@ -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: <Leave blank>
+      API URL: https://api.github.com
+      Credentials: <Auto-generated token>
+      Manage hooks: true
+      GitHub client cache size (MB): 20
+
+#. Click ``Re-register hooks for all jobs``