Yep, you can look at this
code<https://github.com/jenkinsci/scm-sync-configuration-plugin/blob/master/src/main/webapp/scripts/scm-sync-configuration/scm-sync-configuration-page-handler.js#L4>
to
decorate the form submission default behaviour.

Note that ATM, I don't handle the "apply button" on the plugin (apply
button is not submitting the form, so it should be a bit trickier to handle
it).

PS: Kevin is right : you won't have any choice than implementing your data
checks in javascript

Frédéric Camblor  <http://fcamblor.wordpress.com/>
<http://www.twitter.com/fcamblor>
Bordeaux JUG <http://bordeauxjug.org/> Leader
Jenkins <http://jenkins-ci.org/> community member & plugin commiter



On Tue, Jun 4, 2013 at 1:44 PM, Christopher Orr <[email protected]> wrote:

> On 03/06/13 22:03, bbonn wrote:
>
>> I was thinking of a plugin that would review some a job config before
>> submission.  We see a lot of the same configuration errors and I was
>> thinking we could be proactive about developers getting the jobs
>> configured
>> correctly.  So, I was wondering if someone could point me in the direction
>> of a way to access the information (form data maybe) that is typed into
>> the
>> job configuration before the save or apply button is pushed.   The idea
>> being we can make sure the config is correct.  Just looking for a nudge in
>> the right direction as I don't even know if this is a good idea yet :)
>>
>
> I haven't used it myself, but the SCM Sync Config plugin pops up a dialog
> at save time, prompting the user to document their config changes, so that
> they can be checked-in to SVN.
>
> So you could take a look at that plugin's code to get some ideas:
> https://wiki.jenkins-ci.org/**display/JENKINS/SCM+Sync+**
> configuration+plugin<https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin>
>
> Regards,
> Chris
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> jenkinsci-dev+unsubscribe@**googlegroups.com<jenkinsci-dev%[email protected]>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to