File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 2727 dir "$(Build.SourcesDirectory)\dist"
2828 displayName: 'List contents of dist directory'
2929
30+ # The ESRP task should fail since Maven is not a valid content type
3031 - task : EsrpRelease@9
3132 displayName : ' ESRP Release'
33+ continueOnError : true
3234 inputs :
3335 connectedservicename : ' $(ESRPConnectedServiceName)'
3436 usemanagedidentity : true
4951 ServiceEndpointUrl : ' https://api.esrp.microsoft.com'
5052 MainPublisher : ' ESRPRELPACMAN'
5153 DomainTenantId : ' $(DomainTenantId)'
54+
55+ - script : |
56+ echo "ESRP task completed. Checking if it failed as expected..."
57+ if "%AGENT_JOBSTATUS%" == "Failed" (
58+ echo "✅ ESRP task failed as expected for dummy release testing"
59+ exit 0
60+ ) else (
61+ echo "⚠️ ESRP task unexpectedly succeeded"
62+ exit 0
63+ )
64+ displayName: 'Validate ESRP Task Failed as Expected'
You can’t perform that action at this time.
0 commit comments