Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get automated release working with Hudson + Git + Maven Release Plugin
    primarykey
    data
    text
    <p>As the title says, I'm trying to get an automated release job working on Hudson. It's a Maven project, and all the code is in Git. Manually, I do the release on my personal machine like so:</p> <pre><code>git checkout master mvn -B release:prepare release:perform </code></pre> <p>This works perfectly. The Maven release plugin properly pushes the release tag to the origin repository as well as the next commit that bumps the version to the next SNAPSHOT.</p> <p>However, when I run this same Maven job through Hudson (either by creating my own "release" job or by using the <a href="http://wiki.hudson-ci.org/display/HUDSON/M2+Release+Plugin" rel="nofollow noreferrer">M2 Release Plugin</a>) it doesn't work so well. The release tag gets pushed out to the origin repository, and the release gets pushed out to our Nexus repository, but the subsequent commit that bumps the version to the next SNAPSHOT doesn't go out. Furthermore, the "master" branch in the origin repository doesn't get changed at all. I've looked in Hudson's workspace for the job, however, and the version has been updated.</p> <p>After looking at the output from the Hudson job, it appears that the Git plugin does not actually checkout "master", but rather it's SHA1 id. That is, if the "master" branch label points to commit "f6af76f541f1a1719e9835cdb46a183095af6861", Hudson does</p> <pre><code>git checkout -f f6af76f541f1a1719e9835cdb46a183095af6861 </code></pre> <p>instead of</p> <pre><code>git checkout -f master </code></pre> <p>As a result, the changes that the Maven release plugin is making are not actually on any branch (certainly not on "master") and these changes don't make it to the origin repository. It runs on the right code, but bookkeeping-wise, the changes seem to get lost because no branch label points to them.</p> <p>Has anybody gotten the Hudson + Git + Maven Release Plugin combo to work properly? Is there some additional configuration somewhere I can set to make this happen? Or is this a bug in the Hudson Git plugin?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload