perfpublisher-plugin
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Jenkins perfpublisher plugin
+--------------------------------------------------+
+	README - HOW TO COMPILE - PLUGIN	   +
+--------------------------------------------------+
@author  : Georges Bossert
	   

  
    org.jenkins-ci.tools
  

  

    
      jenkins

      
        true
      

      
        
          repo.jenkins-ci.org
          http://repo.jenkins-ci.org/public/
        
        
          m.g.o-public
          http://maven.glassfish.org/content/groups/public/
        
      

      
        
          repo.jenkins-ci.org
          http://repo.jenkins-ci.org/public/
        
        
          m.g.o-public
          http://maven.glassfish.org/content/groups/public/
        
      

    

  

  

    
      repo.jenkins-ci.org
      http://repo.jenkins-ci.org/public/
      m.g.o-public
    

  

  
    jenkins
  



----------------------------------------------------
2. Files and Workspace layout
----------------------------------------------------
PerfPublisher as any Jenkins Plugin is mainly
based on 4 types of data.

> pom.xml :
The controller of it's own Maven build

> src/main/java :
Contains all the Java sources.

> src/main/ressources :
Contains all the Jelly and others ressources files.

> src/main/webapp :
Every files in the directory will be copy directly into
the runtime of the Plugin. Must contain all the static 
components like images and HTML pages.

----------------------------------------------------
3. Compile a project
----------------------------------------------------
In a shell, juste use the maven commands :
> mvn clean :
	clean the sources and the previous build
> mvn compile :
	compile the sources

----------------------------------------------------
4. Debug a project
----------------------------------------------------
Before starting debug, the environnement must be set.
use this linux command to execute the debug on
your host using port 8000

export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n"

As compiling, debuging only requires tu execute a 
maven command :

> mvn hpi:run

If you open http://localhost:8080/ in your browser, 
you should see the Jenkins page running in Jetty. 
The MAVEN_OPTS portion launches this whole thing 
with the debugger port 8000, so you should be able 
to start a debug session to this port from your IDE.

----------------------------------------------------
5. Distributing a Plugin
----------------------------------------------------
To create the package containing the needed files,
run the following maven goal :

> mvn package

This command should create an archive *.hpi, which is 
similar to *.jar, in the target directory. It's
this file used to install the plugin .

----------------------------------------------------
6. Links
----------------------------------------------------
Maven2 :
http://maven.apache.org/
Jenkins :
http://jenkins-ci.org/

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。