Procházet zdrojové kódy

Add procedure to connect Jenkins to Gogs

DricomDragon před 5 roky
rodič
revize
37eb4ef552
1 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 20 0
      Guides/jenkins.md

+ 20 - 0
Guides/jenkins.md

@@ -37,6 +37,26 @@ The best way to secure _Jenkins_ is to use the proxy with _Apache_.
 
 See the _JovianHttpd_ repository to see the template for configuration.
 
+## Integration
+
+Integrate Jenkins with other tools
+
+### Gogs
+
+#### Plugin
+
+Install `gogs-webhook` plugin.
+
+Documentation on [plugins.jenkins.io](https://plugins.jenkins.io/gogs-webhook).
+
+#### Private communication
+
+- Create a Jenkins account on Gogs
+- Generate an SSH key with `ssh-keygen`
+- Create credentials under Jenkins and store private key and passphrase
+- Put SSH public key in Jenkins account on Gogs
+- On Gogs : Add Jenkins user with _read_ rights to any repository Jenkins has to build
+
 ## Trouble shooting
 
 ### Logs