문제

I'm building a project with multiple SVN repositories. Using the Email-ext plugin to email when a job is successfull or failed.

When I use the token ${SVN_REVISION} all I get is the number 400, which isn't the build number nor any of the repositories' revision number.

What I want to use is the same variable the svn plugin provides: %SVN_REVISION_1%, but neither ${ENV, var="SVN_REVISION_1"} nor ${ENV, var="%SVN_REVISION_1%"} work.

Also, when I list the variables (${ENV, var=""}) I can't find SVN_REVISION or SVN_REVISION_1.

The email needs to have SVN_REVISION_1 on the subject, or else it'll be quite a hassle to find what version was built.

Are there any workarounds?

도움이 되었습니까?

해결책 2

${ENV, var="SVN_REVISION_1"} does work. I was trying to force the email by aborting the build. If the build is aborted too soon, SVN_REVISION_1 is never created.

다른 팁

I just tried using ${ENV, var="SVN_REVISION_1"} with our two modules we use on subversion and it worked. Thanks!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top