i am using the azure vmss machine as self hosted agent which gets provisioned during the pipeline execution. I am running the below code. However it gets failed and throws the error message. Kindly suggest how can i fix the below code. Just to add, it works fine if i use windows agent but fails when i use Ubuntu.
Error Message: ##[error]Client network socket disconnected before secure TLS connection was established
Pipeline code:
stages:
- stage: "BuildStage"
displayName: "Build Stage"
jobs:
- job: "BuildJob"
displayName: "BuildJob"
steps:
- task: NodeTool@0
inputs:
#versionSource: 'spec'
versionSpec: '18.x'
displayName: "setting node version"
- script: |
npm install
displayName: "Prepare binaries"
- script: |
npm run build
displayName: "Building the project"
- task: ArchiveFiles@2
displayName: "Archiving the files"
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
displayName: publishing pipeline artifacts
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
ArtifactName: 'drop'
publishLocation: 'Container'