Incorrect SkipSectionExpression value in azure-pipelines-extensions/Extensions/ServiceNow/Src/Tasks/CreateAndQueryChangeRequest/CreateAndQueryChangeRequestV2/
hard2reid opened this issue · 0 comments
When trying to create a new change via an Environment check the call to get the change request number via
is being called when it should be skipped.
That is because the SkipSectionExpression has "or(eq(eq('$(system.hosttype)', 'checks'), false), or(eq(eq(taskInputs['changeRequestAction'], 'createNew'), false), eq(isNullOrEmpty(variables['CHANGE_SYSTEM_ID']), false)))"
The eq(isNullOrEmpty(variables['CHANGE_SYSTEM_ID']), false)) should be eq(isNullOrEmpty(variables['CHANGE_SYSTEM_ID']), true)).
NOTE: The previous version has the correct flag value of true but for some reason it was changed to false.
What is happening is the call is being made and it returns an empty result and no further calls are made.