Test and deploy plugin for Bug fix

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Test and deploy plugin for Bug fix

Mikael Petterson
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 
Reply | Threaded
Open this post in threaded view
|

Re: Test and deploy plugin for Bug fix

Justin Holzer
To test your plugin, you have a few options:

1. You can run "mvn hpi:run" from your project directory and it will automatically launch a test instance of Hudson with your plugin installed.
    * In this case, the instance of Hudson that is run will always match the parent version specified in your pom.xml

2. You can build the updated hpi file and copy it in to the plugins directory of an existing Hudson workspace (just make sure you restart Hudson after you do this)
    * This shouldn't "ruin" your current installation. You can always take a backup of the existing plug-in and restore it if necessary
    * There is a caveat with this option... You have to make sure that the version of Hudson you are testing with is new enough for your plugin to work properly.

To commit code to the SVN repository, just post a message to this mailing list asking for commit privileges. Include a short explanation about what you're working on. Once you have commit privileges, check out the following page for information about releasing your plugin (which is nothing more than running a maven command):


Best of luck,

Justin

On Thu, Feb 25, 2010 at 5:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 

Reply | Threaded
Open this post in threaded view
|

Re: Test and deploy plugin for Bug fix

Andrew Bayer
Also, if you're making changes to an existing plugin, I'd strongly recommend you check with the maintainer of that plugin before committing any changes.

A.

On Thu, Feb 25, 2010 at 6:13 AM, Justin Holzer <[hidden email]> wrote:
To test your plugin, you have a few options:

1. You can run "mvn hpi:run" from your project directory and it will automatically launch a test instance of Hudson with your plugin installed.
    * In this case, the instance of Hudson that is run will always match the parent version specified in your pom.xml

2. You can build the updated hpi file and copy it in to the plugins directory of an existing Hudson workspace (just make sure you restart Hudson after you do this)
    * This shouldn't "ruin" your current installation. You can always take a backup of the existing plug-in and restore it if necessary
    * There is a caveat with this option... You have to make sure that the version of Hudson you are testing with is new enough for your plugin to work properly.

To commit code to the SVN repository, just post a message to this mailing list asking for commit privileges. Include a short explanation about what you're working on. Once you have commit privileges, check out the following page for information about releasing your plugin (which is nothing more than running a maven command):


Best of luck,

Justin


On Thu, Feb 25, 2010 at 5:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 


Reply | Threaded
Open this post in threaded view
|

RE: Test and deploy plugin for Bug fix

Mikael Petterson
Hi,
 
I have sent emails ( both his email addresses) to the maintainer but he has not replied. Do anyone know Stephen Connolly or have had any mail contact with him?
 
br,
 
//mike


From: Andrew Bayer [mailto:[hidden email]]
Sent: den 25 februari 2010 15:33
To: [hidden email]
Subject: Re: Test and deploy plugin for Bug fix

Also, if you're making changes to an existing plugin, I'd strongly recommend you check with the maintainer of that plugin before committing any changes.

A.

On Thu, Feb 25, 2010 at 6:13 AM, Justin Holzer <[hidden email]> wrote:
To test your plugin, you have a few options:

1. You can run "mvn hpi:run" from your project directory and it will automatically launch a test instance of Hudson with your plugin installed.
    * In this case, the instance of Hudson that is run will always match the parent version specified in your pom.xml

2. You can build the updated hpi file and copy it in to the plugins directory of an existing Hudson workspace (just make sure you restart Hudson after you do this)
    * This shouldn't "ruin" your current installation. You can always take a backup of the existing plug-in and restore it if necessary
    * There is a caveat with this option... You have to make sure that the version of Hudson you are testing with is new enough for your plugin to work properly.

To commit code to the SVN repository, just post a message to this mailing list asking for commit privileges. Include a short explanation about what you're working on. Once you have commit privileges, check out the following page for information about releasing your plugin (which is nothing more than running a maven command):


Best of luck,

Justin


On Thu, Feb 25, 2010 at 5:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 


Reply | Threaded
Open this post in threaded view
|

RE: Test and deploy plugin for Bug fix

Mikael Petterson
In reply to this post by Justin Holzer
Hi,
 
Great help!
 
I backed-up my cobertura.hpi and put the new there. Restarted hudson.
 
How can I check what version I have built my plugin against?
 
br,
 
//mike


From: Justin Holzer [mailto:[hidden email]]
Sent: den 25 februari 2010 15:14
To: [hidden email]
Subject: Re: Test and deploy plugin for Bug fix

To test your plugin, you have a few options:

1. You can run "mvn hpi:run" from your project directory and it will automatically launch a test instance of Hudson with your plugin installed.
    * In this case, the instance of Hudson that is run will always match the parent version specified in your pom.xml

2. You can build the updated hpi file and copy it in to the plugins directory of an existing Hudson workspace (just make sure you restart Hudson after you do this)
    * This shouldn't "ruin" your current installation. You can always take a backup of the existing plug-in and restore it if necessary
    * There is a caveat with this option... You have to make sure that the version of Hudson you are testing with is new enough for your plugin to work properly.

To commit code to the SVN repository, just post a message to this mailing list asking for commit privileges. Include a short explanation about what you're working on. Once you have commit privileges, check out the following page for information about releasing your plugin (which is nothing more than running a maven command):


Best of luck,

Justin

On Thu, Feb 25, 2010 at 5:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 

Reply | Threaded
Open this post in threaded view
|

Re: Test and deploy plugin for Bug fix

Justin Holzer
In the pom.xml for your plugin, you should see a section like the following:

<parent>
  <groupId>org.jvnet.hudson.plugins</groupId>
  <artifactId>plugin</artifactId>
  <version>1.319</version>      <!-- this is the version of Hudson you are building against --> 
  <relativePath>../pom.xml</relativePath>
</parent>

<version></version> defines the version you are building against. In the case above, it would be 1.319.

On Thu, Feb 25, 2010 at 10:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
Great help!
 
I backed-up my cobertura.hpi and put the new there. Restarted hudson.
 
How can I check what version I have built my plugin against?
 
br,
 
//mike


From: Justin Holzer [mailto:[hidden email]]
Sent: den 25 februari 2010 15:14

To: [hidden email]
Subject: Re: Test and deploy plugin for Bug fix

To test your plugin, you have a few options:

1. You can run "mvn hpi:run" from your project directory and it will automatically launch a test instance of Hudson with your plugin installed.
    * In this case, the instance of Hudson that is run will always match the parent version specified in your pom.xml

2. You can build the updated hpi file and copy it in to the plugins directory of an existing Hudson workspace (just make sure you restart Hudson after you do this)
    * This shouldn't "ruin" your current installation. You can always take a backup of the existing plug-in and restore it if necessary
    * There is a caveat with this option... You have to make sure that the version of Hudson you are testing with is new enough for your plugin to work properly.

To commit code to the SVN repository, just post a message to this mailing list asking for commit privileges. Include a short explanation about what you're working on. Once you have commit privileges, check out the following page for information about releasing your plugin (which is nothing more than running a maven command):


Best of luck,

Justin

On Thu, Feb 25, 2010 at 5:23 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
 
I have managed to co, change and build using maven ( yes it was a proxy problem).
 
How can I test the new plugin? I have built a new cobertura.hpi file.
 
I don't wan't to ruin my current installation of so how can I do this smoothly.
 
If everything is ok how can commit code to svn?
 
Lot's of questions ..... I would appreciate if you could take the time to help me out.
 
br,
 
//mike
 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================