Feb 21 2023
10:59 AM
- last edited on
Mar 05 2024
02:28 PM
by
TechCommunityAP
Feb 21 2023
10:59 AM
- last edited on
Mar 05 2024
02:28 PM
by
TechCommunityAP
Hello,
While running pipeline, it either completes as Success(Green color), Error(Red color) or Cancelled(White circle with borders) as shown below
Is it possible complete this with warning(Yellow color) on the basis of some condition inside pipeline.
Please help. Thank you.
Kind Regards,
Tanul
Feb 21 2023 12:03 PM
How you could implement this in a pipeline using a condition to trigger a warning status:
Feb 21 2023 11:22 PM - edited Feb 21 2023 11:43 PM
Solution@RobinaThank you the details. This is the only algo can work.
If possible, could you please share any msdn url for creating these labels etc. I don't know the procedure to define custom status or labels for pipelines in azure devops portal. I have searched a lot on google but no luck.
Does this work Logging Commands
Aug 16 2023 03:20 AM - edited Aug 16 2023 10:07 AM
Achieved this by echoing the following before the task ends, then exit with status 0:
echo "##vso[task.complete result=SucceededWithIssues;]"
The following will make the task fail (or alternatively, exit with non-zero status):
echo "##vso[task.complete result=Failed;]"
Feb 21 2023 11:22 PM - edited Feb 21 2023 11:43 PM
Solution@RobinaThank you the details. This is the only algo can work.
If possible, could you please share any msdn url for creating these labels etc. I don't know the procedure to define custom status or labels for pipelines in azure devops portal. I have searched a lot on google but no luck.
Does this work Logging Commands