Clover plugin

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

Clover plugin

Stephen Connolly-2
Anyone want to try it out? It's in CVS.

Also, what is the process for "officially" releasing a version of a plugin.

BTW, People who want to improve the clover plugin, there is plenty of scope for refactoring and in general tidying up
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
Stephen Connolly wrote:
> Anyone want to try it out? It's in CVS.
>
> Also, what is the process for "officially" releasing a version of a plugin.

Basically just runs "mvn release:prepare release:perform", then upload
the result to java.net. I have a script that does this, but I wonder if
it's automatable --- maybe I should write another mojo that does the
posting.

It would be great if you can also add this plugin to the Wiki, even just
briefly.

> BTW, People who want to improve the clover plugin, there is plenty of scope
> for refactoring and in general tidying up


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> Basically just runs "mvn release:prepare release:perform", then upload
> the result to java.net. I have a script that does this, but I wonder if
> it's automatable --- maybe I should write another mojo that does the
> posting.

I made the change so that doing "release:perform" on hudson/plugin/xyz
will post the plugin to java.net.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Stephen Connolly-2

kohsuke wrote
I made the change so that doing "release:perform" on hudson/plugin/xyz
will post the plugin to java.net.
That change is not working for me.  I had to comment out the goal. Once possibility is that I'm not picking up the latest hpi plugin... the other is that it's only in your local repository ;-)

- Stephen
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
Stephen Connolly wrote:
> kohsuke wrote:
>>
>> I made the change so that doing "release:perform" on hudson/plugin/xyz
>> will post the plugin to java.net.
>>
> That change is not working for me.  I had to comment out the goal. Once
> possibility is that I'm not picking up the latest hpi plugin... the other is
> that it's only in your local repository ;-)

I posted maven-hpi-plugin 1.9 which contains this change. It's already
available in the repository [1].

If you have any error message, let me know.

[1]
http://download.java.net/maven/2/org/jvnet/hudson/tools/maven-hpi-plugin/
--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Stephen Connolly-2
In reply to this post by Kohsuke Kawaguchi
FYI The Clover plugin is now available in the downloads section:

https://hudson.dev.java.net/files/documents/2402/61719/clover.hpi

You'll need Hudson 1.115 or newer to run it.

-Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Stephen Connolly-2
I've found a bug in the Clover plug-in that causes the System
Configuration screen to blow up (malformed global.jelly) but I'm having
problems committing the fix.

I advise waiting until clover plug-in version 1.2 (which I hope to have
out in the next 24 hours)

-Stephen.

Stephen Connolly wrote:

> FYI The Clover plugin is now available in the downloads section:
>
> https://hudson.dev.java.net/files/documents/2402/61719/clover.hpi
>
> You'll need Hudson 1.115 or newer to run it.
>
> -Stephen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
In reply to this post by Stephen Connolly-2
Stephen Connolly wrote:
>
>
> kohsuke wrote:
>>
>> I made the change so that doing "release:perform" on hudson/plugin/xyz
>> will post the plugin to java.net.
>>
> That change is not working for me.  I had to comment out the goal.

I believe I fixed this problem now. It turns out I needed to run deploy
before hpi:upload, not the other way around.

I posted JIRA plugin with this change, and upload happened automatically.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Stephen Connolly-2
kohsuke wrote
I believe I fixed this problem now. It turns out I needed to run deploy
before hpi:upload, not the other way around.

I posted JIRA plugin with this change, and upload happened automatically.
Still not working for me :-(

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson Clover plugin
[INFO]    task-segment: [release:perform] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: cvs -z3 -f -d :pserver:stephenconnolly@cvs.dev.java.net:/cvs -q checkout -r clover-1_2 -d checkout hudson/hudson/p
lugins/clover
[INFO] Working directory: C:\local\cvs\hudson\hudson\plugins\clover\target
[INFO] Executing goals 'deploy hpi:upload'...
[INFO] Executing: mvn deploy hpi:upload --no-plugin-updates -P hudson.sign -DperformRelease=true
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'hpi'.
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Required goal not found: hpi:upload
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Fri Jul 13 09:16:44 BST 2007
    [INFO] Final Memory: 1M/4M
    [INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Fri Jul 13 09:16:44 BST 2007
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------

Seems to be running the deploy and hpi:upload goals in C:\local\cvs\hudson\hudson\plugins\clover\target and not C:\local\cvs\hudson\hudson\plugins\clover (as it's not finding the pom.xml which would give it the hpi plugin... or maybe there is some documentation as to required settings.xml stuff that you are forgetting to tell us)

When I run the goals manually, the hpi:upload goal says:

Embedded error: Unable to locate C:\Documents and Settings\stephen\.java.net
C:\Documents and Settings\stephen\.java.net (The system cannot find the file specified)

So additionally, I need some docs as to what goes in that file...

Finally...  You may have noticed that my os username (stephen) is not my java.net username (stephenconnolly) which means that I have to manually tweak the scm url in release.properties file as you use ${user.name} and no amount of -Duser.name=stephenconnolly will override that.  Set a property (i.e. <cvs.user.name>${user.name}</cvs.user.name> and that way -Dcvs.user.name=blah should work!


Cheers,

Stephen.
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Stephen Connolly-2
In reply to this post by Stephen Connolly-2
Clover plugin version 1.2 released and now available in the downloads section.

-Stephen.

Stephen Connolly wrote
I've found a bug in the Clover plug-in that causes the System
Configuration screen to blow up (malformed global.jelly) but I'm having
problems committing the fix.

I advise waiting until clover plug-in version 1.2 (which I hope to have
out in the next 24 hours)

-Stephen.
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
In reply to this post by Stephen Connolly-2
Stephen Connolly wrote:
> Seems to be running the deploy and hpi:upload goals in
> C:\local\cvs\hudson\hudson\plugins\clover\target and not
> C:\local\cvs\hudson\hudson\plugins\clover (as it's not finding the pom.xml
> which would give it the hpi plugin... or maybe there is some documentation
> as to required settings.xml stuff that you are forgetting to tell us)

The release plugin runs the build in target/checkout, so that is
correct. As long as plugins/pom.xml is installed in your local
repository, the build from target/checkout should be able to find the
hpi plugin.

How Maven finds a plugin from a prefix has always been a mystery to me,
so maybe there are pieces that I'm missing.

> Embedded error: Unable to locate C:\Documents and Settings\stephen\.java.net
> C:\Documents and Settings\stephen\.java.net (The system cannot find the file
> specified)
>
> So additionally, I need some docs as to what goes in that file...

Ah, see https://javanettasks.dev.java.net/nonav/maven/config.html


> Finally...  You may have noticed that my os username (stephen) is not my
> java.net username (stephenconnolly) which means that I have to manually
> tweak the scm url in release.properties file as you use ${user.name} and no
> amount of -Duser.name=stephenconnolly will override that.  Set a property
> (i.e. <cvs.user.name>${user.name}</cvs.user.name> and that way
> -Dcvs.user.name=blah should work!

We can do that.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Clover plugin

Kohsuke Kawaguchi
Administrator
In reply to this post by Stephen Connolly-2
Stephen Connolly wrote:
> Finally...  You may have noticed that my os username (stephen) is not my
> java.net username (stephenconnolly) which means that I have to manually
> tweak the scm url in release.properties file as you use ${user.name} and no
> amount of -Duser.name=stephenconnolly will override that.  Set a property
> (i.e. <cvs.user.name>${user.name}</cvs.user.name> and that way
> -Dcvs.user.name=blah should work!

I made this change in plugin/pom.xml

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment