0

I want to fill a default value of a text parameter with current SVN revision number.

I created a Dynamic Parameter (Dynamic Parameter Plug-in) with default value script that looks like this:

def url = "http://192.168.0.1/svn/myproj/trunk"
def user = "username"
def password = "password"

return svnrev = "svn info --username $user --password $password --show-item last-changed-revision $url".execute().text

But the parameter textfield is just blank. I'm not very familiar with Groovy.

Any help is appreciated!

1 Answer 1

1

the --show-item option was added in SVN 1.9

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.