is it possible to specify validation for build properties?

When running a custom build it is possible for a user to override build properties using the Run Custom Build popup which shows all properties defined for that buidld configuration.
Is it possible to specify validation such as an enumeration of values, a regular expression or mandatoryness for properties e.g. system properties that will be passed to the build?

1 comment

Yes.

I believe the easiest way is to write a task in the build script to validate all parameters.

Another apporach is to write a plugin for build agent that is registered to build agent event on AgentLifeCycleListener::beforeRunnerStarted event

0

Please sign in to leave a comment.