One relatively easy way would be to change using the following:
  http://svn/app/trunk/${revision}
The @ sign must then be added by the user. But this can be checked by using the 
validating string parameter and a regular expression string as follows:
   (^\@\d*$)|^$

Anything else I think will require groovy code or writing a new plugin.
________________________________________
From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> on 
behalf of Osborn, Tammy (DNR) <tammy.osb...@dnr.wa.gov>
Sent: 13 May 2017 01:27:28
To: jenkinsci-users@googlegroups.com
Subject: SVN post-commit notify for parameterized job

I have a parameterized job so user can select the specific revision to build. 
This is in case we don’t have a build saved for an older revision.
The job’s Repository URL includes the revision build param like this: 
http://svn/app/trunk/@${revision}
This works fine when running the build manually.

But the notifyCommit from my post-commit hook doesn’t find the job (error “No 
subversion consumers…”). It’s because of the @${revision} in the URL since, if 
I remove that part, the build is triggered by a commit just fine.

Is there a way we can use the same job for both purposes: (1) manual build for 
specific revision and (2) auto build by post-commit hook?

We’re using Jenkins 2.54, Java 1.8_121 and Subversion Plugin version 2.7.2.

--
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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/19E7B5A7F96E1C48B658A85C9D50910C3424E48C%40WAXMXOLYMB011.WAX.wa.lcl<https://groups.google.com/d/msgid/jenkinsci-users/19E7B5A7F96E1C48B658A85C9D50910C3424E48C%40WAXMXOLYMB011.WAX.wa.lcl?utm_medium=email&utm_source=footer>.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d40ddb695dce44acb1b6b4d64cebb380%40partner.eso.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to