Can you do this with Hudson?

Posted by damian on Stack Overflow See other posts from Stack Overflow or by damian
Published on 2010-03-09T20:41:53Z Indexed on 2010/03/11 20:49 UTC
Read the original article Hit count: 209

I want to create a hudson job, that takes an id as a parameter. And use that id to calculate the svn-repo path.

Where I work you have a svn path for every issue that you resolve. And then all the issues are joined into a single svn-path.

What I want to do is to run static code analysis on the partial issues.

So I think maybe having an Ant build.xml that I use for every issue, then, parametrize the job with the issue id.

I have tried to achieve that but the svn path doesn't replace the parameter.

I have tried with #issueId, %issueId%, ${issueId} and ${env.issueId} without success.

Jump error like:

Location 'http://svn-path:8181/svn/devSet/issues/${env.chuid}' does not exist
Checking out a fresh workspace because C:\Documents and Settings\dnoseda\.hudson\jobs\test\workspace\${env.chuid} doesn't exist
Checking out http://svn-path:8181/svn/devSet/issues/${env.chuid}
ERROR: Failed to check out http://svn-path:8181/svn/devSet/issues/${env.chuid}
org.tmatesoft.svn.core.SVNException: svn: '/svn/!svn/bc/46190/devSet/issues/$%7Benv.chuid%7D' path not found: 404 Not Found (http://svn-path:8181)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
    at 

I am think that I can not do what I want.

Do you know how I can setup the correct configuration to achieve this matter?

Thanks for any help.

Edit The section of the configurate job that I want to put this parameter is this:

<scm class="hudson.scm.SubversionSCM">
<locations>
      <hudson.scm.SubversionSCM_-ModuleLocation>
        <remote>http://svn-path:8181/svn/devSet/issues/${env.issueid}</remote>
      </hudson.scm.SubversionSCM_-ModuleLocation>
    </locations>

© Stack Overflow or respective owner

Related posts about hudson

Related posts about continuous-integration