You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect SkipSectionExpression value in azure-pipelines-extensions/Extensions/ServiceNow/Src/Tasks/CreateAndQueryChangeRequest/CreateAndQueryChangeRequestV2/
#1139
Open
hard2reid opened this issue
Mar 23, 2023
· 0 comments
When trying to create a new change via an Environment check the call to get the change request number via $(endpoint.url)/api/now/table/change_request?x_mioms_azpipeline_stage_id=$(checks.stageId)&x_mioms_azpipeline_build_id=$(build.buildId)&x_mioms_azpipeline_stage_attempt=$(checks.stageAttempt)&sysparm_fields=number,sys_id,correlation_id
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.
The text was updated successfully, but these errors were encountered:
When trying to create a new change via an Environment check the call to get the change request number via$(endpoint.url)/api/now/table/change_request?x_mioms_azpipeline_stage_id=$ (checks.stageId)&x_mioms_azpipeline_build_id=$(build.buildId)&x_mioms_azpipeline_stage_attempt=$(checks.stageAttempt)&sysparm_fields=number,sys_id,correlation_id
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.
The text was updated successfully, but these errors were encountered: