I'm trying to keep from poking holes in the server proxy and kicking off of 
jobs via an ssh command to a locked down shell on the jenkins server from 
the subversion server (basically "ssh jenkins server 'wget --post-data 
<post-data> <wget-options> 
localhost:8080/jenkins/subversion/<UUID>/revsion=<REV>'").  The problem is 
that the new lines in the post-data are interpreted as either an indication 
of a new command by the shell or ssh shell or as another url by wget 
(depending on how I use quotes).  The new-lines do not survive the ssh call 
to the remote server.  I've tried multiple levels of quotes (and escaped 
quotes) and have not had success.

Reviewing the code, I understand the need for the post-data and in my 
experimentation I have been able to kick off two separate jobs with the 
same commit.  Not functionality I plan on using, but still good to know it 
is possible.

Ben

On Friday, June 5, 2015 at 3:38:32 PM UTC-7, Daniel Beck wrote:
>
> This is how it parses the text: 
>
> https://github.com/jenkinsci/subversion-plugin/blob/master/src/main/java/hudson/scm/SubversionRepositoryStatus.java#L102..L106
>  
>
> So, no, it cannot use a different delimiter. Do you check in files that 
> have newlines as part of the filename, and they get broken into multiple 
> lines? 
>
> On 05.06.2015, at 20:24, Benjamin Todd <[email protected] 
> <javascript:>> wrote: 
>
> > When I run `svnlook changed --revision ${REV} ${REPO}`, it returns 
> something similar to the following: 
> > 
> > A   path/to/new/file/test_138 
> > A   path/to/new/file/test_139 
> > 
> > 
> > 
> > So does Jenkins use this information from --post-data to determine which 
> jobs to build? From above it would look for jobs with the subversion path 
> of "path/to/new/file".  Is that functionality using a new line as a 
> delimiter or can Jenkins use a different delimiter? 
> > 
> > Thanks, 
> > Ben 
> > 
> > On Friday, June 5, 2015 at 1:36:36 AM UTC-7, Daniel Beck wrote: 
> > On 05.06.2015, at 01:14, Benjamin Todd <[email protected]> wrote: 
> > 
> > > I believe using --post-data forces wget to POST as opposed to GET, but 
> is the content it posts actually used?  If so, how since it appears to just 
> be a change list? 
> > 
> > Jenkins needs this to compare the URLs checked out by the projects in 
> Jenkins with the list of changes in the commit to determine which projects 
> need to poll for changes. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/22b771d8-cb9d-4fb7-aaa3-60a882ad6665%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/473112f4-4fb5-4205-87dd-b6354f781eaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to