-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
The CVSTag plugin does not work for branches - it will only work for the head
due to the code listed below missing out specification of the branch (presuming
that there is one)
HUDSON/plugins/cvs-tag/src/main/java/hudson/plugins/cvs_tag/CVSTagPlugin.java -
starts at line 84
// cvs -d cvsRoot rtag -D toDate tagName modules
cmd.add(scm.getDescriptor().getCvsExe(), "-d", scm.getCvsRoot(), "rtag", "-D",
date, tagName, modules);
logger.println("Executing tag command: " + cmd.toStringWithQuote());
The code can be fixed by replacing it with this fragment which addes the branch
argument
ArgumentListBuilder cmd = new ArgumentListBuilder();
// BRANCH
// cvs -d cvsRoot rtag -r BRANCH_NAME -D tagDate tagName modules
if (scm.getBranch()!=null)
// NO BRANCH
// cvs -d cvsRoot rtag -D toDate tagName modules
else
logger.println("Executing tag command: " +
cmd.toStringWithQuote());
- is blocking
-
JENKINS-2553 CVSTag plugin does not work for Branches- mutually exclusive flags used
- Closed
-
JENKINS-2591 CVS tagging doesn't work on branhes
- Closed
-
JENKINS-2611 cvs-tag plugin incorrectly uses both "-r" and "-D" mutually exclusive options
- Closed