[Buildbot-devel] Get nothing doing WithProperties("%s", "revision") from a previously source.SVN(mode=export) step

J. Félix Ontañón fontanon at emergya.es
Tue Apr 8 14:29:42 UTC 2008


El Tue, 8 Apr 2008 09:44:17 -0400
"Dustin J. Mitchell" <dustin at zmanda.com> escribió:

> On Tue, Apr 8, 2008 at 7:58 AM, J. Félix Ontañón
> <fontanon at emergya.es> wrote:
> >  f.addStep(SVN(svnurl="http://mysvn/myapp", mode="export"))
> >  f.addStep(ShellCommand,
> >           command=["tar", "czf",
> >                   WithProperties("build-r%s.tar.gz", "revision"),
> >                   "source"])
> >
> >  I get the wrong: "build-.tar.gz"
> >  But if i set mode="update" it gets right!: "build-r56.tar.gz"
> 
> You should be using the "got_revision" property to get the revision
> that the Source step saw.  "revision" is the revision the scheduler
> specified, which is usually None (meaning HEAD).  I would guess that
> the second time you tried this, you entered a revision manually in the
> web interface?
> 
> Dustin
> 

Thanks for your fast answer Dustin. 

Now with "got_revision" property i get None value instead of nothing.

Lets see:

f.addStep(SVN(svnurl="http://mysvn/myapp", mode="export"))
f.addStep(ShellCommand,
	command=["tar", "czf",
        WithProperties("build-r%s.tar.gz", "revision"),
       "source"])

I get the wrong: build-None.tar.gz

What i'm doing bad?

Thanks again.




More information about the devel mailing list