Go to the root folder of the repository and execute the below command
mvn clean install
Open Jenkins through your browser using below URL
<jenkins_ip>/pluginManager/advanced
Choose to upload a new plugin.
Choose to upload the gogs-repository-viewer.hpi file that is under target/ folder.
MIT