|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
SubversionTagAction.makeTagURLHello!
I think there is a
issue with the makeTagURL-method, because it creates the TagURL quite hardcoded,
meaning that in my (and I'm sure also in others) case Hudson is incapable of
creating the TagURL required.
I want my TagURL to
look like this:
"repoURL/tags/jobname/projectname(sourcecodeproject)-buildnumber" but the method
mentioned creates just
"repoURL/tags/jobname-buildnumber" which means that if
I check out several projects(sourcecodeprojects) at the same time, wanting to
tag those projects into a single tag with projectnames(sourcecodeprojects) as
folders in the tag, I have to type in those paths
manually.
|
|
|
Re: SubversionTagAction.makeTagURLWeichselbaumer Michael wrote:
> Hello! > > I think there is a issue with the makeTagURL-method, because it creates > the TagURL quite hardcoded, meaning that in my (and I'm sure also in > others) case Hudson is incapable of creating the TagURL required. > I want my TagURL to look like this: > "repoURL/tags/jobname/projectname(sourcecodeproject)-buildnumber" but > the method mentioned creates just > "repoURL/tags/jobname-buildnumber" which means that if I check out > several projects(sourcecodeprojects) at the same time, wanting to tag > those projects into a single tag with projectnames(sourcecodeprojects) > as folders in the tag, I have to type in those paths manually. an issue? -- Kohsuke Kawaguchi Sun Microsystems kohsuke.kawaguchi@... |
|
|
|
|
|
|
|
|
Re: SubversionTagAction.makeTagURLWeichselbaumer Michael wrote:
> > Hello again! > > I tried to fix my problem via envoking automatic tagging via http-request. > Building the proper request is quite easy, but when SubversionTagAction > is supposed to perfom() tagging, it just tells me an error because the > path of the tag is not exisiting. > But how should it? I want to CREATE a tag, meaning the directory where > my tag is supposed to be created needs also to be created. Anyway, > SubversionTagAction thinks about creating an error when the path already > exists - perfect. "http://svn-server/a/b/tags/c/d/e/f" where your repository only has "http://svn-server/a/b/tags/c", for example. Can you please file that as an issue? > Can anybody tell me what I'm doing wrong?! I don't think you are doing anything wrong --- it's just that the tagging code must have not thought about this. Does "svn cp" create intermediate directories like you are saying? -- Kohsuke Kawaguchi Sun Microsystems kohsuke.kawaguchi@... |
|
|
Re: SubversionTagAction.makeTagURLI've run into this error when the directory where you're doing the
copying to for the tag itself doesn't exist. Subversion creates a tag by copying the module you're tagging to another directory. Normally something like "tags". Sometimes a sub-directory under tags. For example, I create my tags in http://subversion/dev/modules/app/tags/DEV. If http://subversion/dev/modules/apps/tags/DEV doesn't exist, my tagging fails. Another possible issue is that the Subversion user who Hudson is using doesn't have permission to create a tag in that directory. I ran into this particular problem too. -- David Weintraub qazwart@... On Fri, Jul 4, 2008 at 6:29 AM, Weichselbaumer Michael <michael.weichselbaumer@...> wrote: > Hello again! > > I tried to fix my problem via envoking automatic tagging via http-request. > Building the proper request is quite easy, but when SubversionTagAction is > supposed to perfom() tagging, it just tells me an error because the path of > the tag is not exisiting. > But how should it? I want to CREATE a tag, meaning the directory where my > tag is supposed to be created needs also to be created. Anyway, > SubversionTagAction thinks about creating an error when the path already > exists - perfect. > > Can anybody tell me what I'm doing wrong?! > > Greetings --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: SubversionTagAction.makeTagURLSubversion's "cp" command does not make sub directories. You have to
do a mkdir before you can do a copy. If you want to creata a tag http://svn-server/a/b/tags/c/d/e, and only http://svn-server/a/b/tags/c exist, then you have to create directory http://svn-server/a/b/tags/c/d, then create a directory http://svn--server/a/b/tags/c/d/e, and finally have Hudson make your tag at http://svn-server/a/b/tags/c/d/e/f. I wouldn't want the Subversion tagging command to automatically make the directory tree like "mkdir -p" does because I tend to get my Subversion URL wrong. Getting an error message helps me understand I've got the wrong URL. -- David Weintraub qazwart@... On Mon, Jul 7, 2008 at 7:11 PM, Kohsuke Kawaguchi <Kohsuke.Kawaguchi@...> wrote: > Weichselbaumer Michael wrote: >> >> Hello again! >> I tried to fix my problem via envoking automatic tagging via >> http-request. >> Building the proper request is quite easy, but when SubversionTagAction is >> supposed to perfom() tagging, it just tells me an error because the path of >> the tag is not exisiting. >> But how should it? I want to CREATE a tag, meaning the directory where my >> tag is supposed to be created needs also to be created. Anyway, >> SubversionTagAction thinks about creating an error when the path already >> exists - perfect. > > Ah, OK, interesting. So you want to create a tag like > "http://svn-server/a/b/tags/c/d/e/f" where your repository only has > "http://svn-server/a/b/tags/c", for example. > > Can you please file that as an issue? > >> Can anybody tell me what I'm doing wrong?! > > I don't think you are doing anything wrong --- it's just that the tagging > code must have not thought about this. > > Does "svn cp" create intermediate directories like you are saying? > > -- > Kohsuke Kawaguchi > Sun Microsystems kohsuke.kawaguchi@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Re: SubversionTagAction.makeTagURLIt seems that the svn cp accepts the parameter "--parents" which tells
it to create intermediate directories. I guess this would fix the problem, if used. -- Michael Weichselbaumer -----Original Message----- From: David Weintraub [mailto:qazwart@...] Sent: Dienstag, 08. Juli 2008 01:24 To: users@... Subject: Re: SubversionTagAction.makeTagURL Subversion's "cp" command does not make sub directories. You have to do a mkdir before you can do a copy. If you want to creata a tag http://svn-server/a/b/tags/c/d/e, and only http://svn-server/a/b/tags/c exist, then you have to create directory http://svn-server/a/b/tags/c/d, then create a directory http://svn--server/a/b/tags/c/d/e, and finally have Hudson make your tag at http://svn-server/a/b/tags/c/d/e/f. I wouldn't want the Subversion tagging command to automatically make the directory tree like "mkdir -p" does because I tend to get my Subversion URL wrong. Getting an error message helps me understand I've got the wrong URL. -- David Weintraub qazwart@... On Mon, Jul 7, 2008 at 7:11 PM, Kohsuke Kawaguchi <Kohsuke.Kawaguchi@...> wrote: > Weichselbaumer Michael wrote: >> >> Hello again! >> I tried to fix my problem via envoking automatic tagging via >> http-request. >> Building the proper request is quite easy, but when >> SubversionTagAction is supposed to perfom() tagging, it just tells me >> an error because the path of the tag is not exisiting. >> But how should it? I want to CREATE a tag, meaning the directory >> where my tag is supposed to be created needs also to be created. >> Anyway, SubversionTagAction thinks about creating an error when the >> path already exists - perfect. > > Ah, OK, interesting. So you want to create a tag like > "http://svn-server/a/b/tags/c/d/e/f" where your repository only has > "http://svn-server/a/b/tags/c", for example. > > Can you please file that as an issue? > >> Can anybody tell me what I'm doing wrong?! > > I don't think you are doing anything wrong --- it's just that the > tagging code must have not thought about this. > > Does "svn cp" create intermediate directories like you are saying? > > -- > Kohsuke Kawaguchi > Sun Microsystems kohsuke.kawaguchi@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |