Explorar o código

Add procedure to connect Jenkins to Gogs

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
37eb4ef552
Modificáronse 1 ficheiros con 20 adicións e 0 borrados
  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