dyn365-ce-vsts-tasks
dyn365-ce-vsts-tasks copied to clipboard
Get Online Instance By Name : Could it be possible to not throw error when instance does not exist?
Maybe I'm not using it correctly but I would like to check if an instance exists in a build pipeline to avoid trying to create it using Provision Instance task.
The build will trigger on any change of a branch. So, first time, it does not find the instance, create it and deploy the unmanaged solution. Next updates, the branch exists, so the Provision instance task is not run. Problem is : For the first time, the instance does not exist and the build fails.
I would like an option to not fail if the instance does not exist
Does it make sense?
task: mark continue on error. next task: Run this task = Only when a previous task has failed (negative path) next task: Run this task = Even if a previous task has failed, unless the build was canceled (positive path)
It does not change the result that the build is considered as failed
@MscrmTools you could process some of the outputs get instance task and execute the following tasks based on that.