Skip to content

Commit 284bdb1

Browse files
committed
RELEASE: 0.9.0
1 parent c2cf89d commit 284bdb1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

eng/pipelines/dummy-release-pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
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
@@ -49,3 +51,14 @@ jobs:
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'

0 commit comments

Comments
 (0)