Jenkins Plugin Development-This is the way I drive

Source: Internet
Author: User

A: front-facing environment

1. jdk1.6+

2. MAVEN is installed

3. Jenkins has been built

4. Eclipse is installed (and the MAVEN plugin is installed)

The above environment can be Baidu search and install

My environment is WIN7 64-bit system

Two: Configure the environment

1. Modify the MAVEN configuration file Conf/settings.xml

Replace the original content with

<?XML version= "1.0" encoding= "UTF-8"?><Settings>  <plugingroups>    <Plugingroup>Org.jenkins-ci.tools</Plugingroup>  </plugingroups><Profiles><!--Give access to Jenkins plugins -    < Profile>      <ID>Jenkins</ID>      <activation>        <Activebydefault>True</Activebydefault> <!--Change the this to false, if you don't like the it on per default -      </activation>      <repositories>        <Repository>          <ID>repo.jenkins-ci.org</ID>          <URL>http://repo.jenkins-ci.org/public/</URL>        </Repository>      </repositories>      <pluginrepositories>        <pluginrepository>          <ID>repo.jenkins-ci.org</ID>          <URL>http://repo.jenkins-ci.org/public/</URL>        </pluginrepository>      </pluginrepositories>    </ Profile>  </Profiles></Settings>

cmd command line execution:

Mvn-cpu hpi:create

When the command executes, enter Groupid,artifactid as required, and the project I generate is Hxlplugin

Then import into Eclipse.

After the import is successful, you can see in eclipse

Not to be continued ...

Jenkins Plugin Development-This is the way I drive

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.