ogulcanarbc / basic-jenkins-plugin

A simple jenkins plugin development directing to any link. Introduction to Jenkins plugin development process.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

* When developing a jenkins plugin, you need to configure maven to find libraries from repo.jenkins-ci.org. Here's a sample ~/.m2/settings.xml:
       <settings>
 <pluginGroups>
   <pluginGroup>org.jenkins-ci.tools</pluginGroup>
 </pluginGroups>

 <profiles>
   <!-- Give access to Jenkins plugins -->
   <profile>
     <id>jenkins</id>
     <activation>
       <activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
     </activation>
     <repositories>
       <repository>
         <id>repo.jenkins-ci.org</id>
         <url>https://repo.jenkins-ci.org/public/</url>
       </repository>
     </repositories>
     <pluginRepositories>
       <pluginRepository>
         <id>repo.jenkins-ci.org</id>
         <url>https://repo.jenkins-ci.org/public/</url>
       </pluginRepository>
     </pluginRepositories>
   </profile>
 </profiles>
 <mirrors>
   <mirror>
     <id>repo.jenkins-ci.org</id>
     <url>https://repo.jenkins-ci.org/public/</url>
     <mirrorOf>m.g.o-public</mirrorOf>
   </mirror>
 </mirrors>
</settings> 
* Open a command prompt, navigate to the directory you want to store your new Jenkins plugin in, and run the following command:

mvn -U org.jenkins-ci.tools:maven-hpi-plugin:

* End finally run the following command:

mvn hpi:run

About

A simple jenkins plugin development directing to any link. Introduction to Jenkins plugin development process.


Languages

Language:Java 91.8%Language:HTML 8.2%