cols-agent-tasks icon indicating copy to clipboard operation
cols-agent-tasks copied to clipboard

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

Open wpschaub opened this issue 2 years ago • 5 comments

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.

wpschaub avatar Nov 24 '21 20:11 wpschaub

@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?

colindembovsky avatar Nov 27 '21 18:11 colindembovsky

@colindembovsky that would be perfect, thank you!

wpschaub avatar Nov 28 '21 01:11 wpschaub

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

wpschaub avatar Jan 12 '22 05:01 wpschaub

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

colindembovsky avatar Jan 20 '22 19:01 colindembovsky

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

wpschaub avatar Jan 21 '22 00:01 wpschaub