diff --git a/eng/pipelines/templates/steps/java-publishing.yml b/eng/pipelines/templates/steps/java-publishing.yml index e4e0a9e051e28..ba90a23f9e186 100644 --- a/eng/pipelines/templates/steps/java-publishing.yml +++ b/eng/pipelines/templates/steps/java-publishing.yml @@ -107,13 +107,13 @@ steps: -Path ${{ parameters.OutputDirectory }} -InformationAction Continue - ${{if and(eq(parameters.ShouldPublish, 'true'), ne(parameters.StageOnly, 'true'))}}: - - task: EsrpRelease@2 + - task: EsrpRelease@4 displayName: 'Publish to ESRP' inputs: - ConnectedServiceName: 'ESRP Release Service' + ConnectedServiceName: 'ESRP SNI Test' Intent: 'PackageDistribution' ContentType: 'Maven' - PackageLocation: ${{ parameters.OutputDirectory }} + FolderLocation: ${{ parameters.OutputDirectory }} Owners: $(Build.RequestedForEmail) Approvers: 'wesh@microsoft.com' ServiceEndpointUrl: 'https://api.esrp.microsoft.com'