You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to job-dsl-plugin
hi All ,
I am very new to the jenkins job dsl and groovy. I have jenkins job which accept the date from the user and calls the rake task. The code is something like this
j.with { parameters { stringParam('CUTOFF_DATE', '2016-03-01', 'Anything created before this date will be deleted') booleanParam('ARE_YOU_SURE', false, 'All will be lost beyond hope!') }
Here I wanted to validate CUTOFF_DATE which should be in format YYYY-MM-DD. How can I achieve this ?
Victor Martinez
unread,
Mar 14, 2016, 11:31:50 AM3/14/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to job-dsl-plugin
I'm afraid, Jenkins itself doesn't provide any specific validation for that input as far as I know, therefore it cannot be done by JobDSL itself rather than adding an extra build step to double check that parameter. Or maybe developing a argument plugin for that particular requirement.