Job Name validation based on Job Type.

8 views
Skip to first unread message

Anil Subudhi

unread,
Jun 29, 2015, 6:23:01 AM6/29/15
to jenkins...@googlegroups.com
I have created the new project type, I would like to validate the job name of project type i created.

What i tried:

  1) As it is calling doCheckjobName of Hudson it is not invoking my descriptor method doCheckjobName ().

  2) Checked with newInstance() to throw Runtime exception/Failure but though it throws exception but it doesn't print the error message in hudson context rather simple response HTTP 500 content coming.Am i missing some 
      jelly to configure.

  3) Tried with error.jelly but no luck. 


  I want either it can be done in form validation or on after submit, it should flag the message in Error page.

Can any one help on this.

Thanks!
Reply all
Reply to author
Forward
0 new messages