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.