colindembovsky / cols-agent-tasks

Colin's ALM Corner Custom Build Tasks
MIT License
83 stars 65 forks source link

Allow user to configure extension to fail if token replacement is suspect #177

Open wpschaub opened 2 years ago

wpschaub commented 2 years ago

Would be especially useful if we can configure the Replace Tokens task to succeed with warnings or fail if a token cannot be found or replaced, so that a deployment can be failed if the required configuration is missing or suspect.

colindembovsky commented 2 years ago

@wpschaub Default behavior is "succeed with warnings". However, if you set warningsAsErrors to true, the task will fail if a token does not exist. Is this sufficient?

wpschaub commented 2 years ago

@colindembovsky that would be perfect, thank you!

wpschaub commented 2 years ago

@colindembovsky let me know when it is time to do some regression testing.

colindembovsky commented 2 years ago

@wpschaub what I meant was this behavior exists already - is there something else you need?

wpschaub commented 2 years ago

Sorry @colindembovsky, my bad. Have you documented this feature anywhere? I can find the variable in your code, but not in the documentation.