How to integrate with Jenkins
Last updated
Last updated
Before uploading to Jenkins, make sure to extract the downloaded file in order to obtain the file with the .hpi extension.
Download the Leiga Plugin for Jenkins file.
Log in to your Jenkins as an administrator.
Click Manage Jenkins on the left and then click Mange Plugins.
On the next page, switch to the Advanced tab. Then choose Leiga Plugin file(.hpi file) and click on Upload.
Enter Jenkins integration page in Leiga, click on Get Configuration button. You will get WebHook Url and Secret Token.
Back to Manage Jenkins and Click on Configure System and you will find Leiga application in this page.
Fill in your Jenkins access address in Jenkins Url.
Fill in the WebHook Url generated in the previous step from Leiga in WebHook Url.
Click the Add button below.
On the next page, Select Secret Text on the dropdown of Kind.
Add the Secret Token generated from Leiga to Secret.
Click the button to test the connection, and save the configuration if connect successfully.
Add this function: lgSendBuildInfo(options) to Git tool pipe line file.
For the location where to add the function please refer to the following image.