I created a pipeline as below:
trigger:
branches:
include:
- pre-prod
pool:
name: default
stages:
- stage: build
displayName: 'Build stage'
jobs:
- job: Build
displayName: 'Build'
steps:
- script: echo Build starting
- script: |
docker-compose -f docker-compose.yml build
displayName: 'Build Docker images'
Installed and registered azure agent on my ubuntu server.
by running the run.sh, it connects to the server properly and starts processing the job as expected.
looking at the logs, there’s a stage named initialize job which is apparently trying to download the CmdLine task and is throwing an error:
##[warning]Failed to download task 'CmdLine'. Error Unable to read data from the transport connection: Connection reset by peer.
##[warning]Inner Exception: Connection reset by peer
##[warning]Back off 21.485 seconds before retry.
##[warning]Failed to download task 'CmdLine'. Error Unable to read data from the transport connection: Connection reset by peer.
##[warning]Inner Exception: Connection reset by peer
##[warning]Back off 27.578 seconds before retry.
##[warning]Failed to download task 'CmdLine'. Error Unable to read data from the transport connection: Connection reset by peer.
##[warning]Inner Exception: Connection reset by peer
##[error]Unable to read data from the transport connection: Connection reset by peer.
I also tried setting DNS as the ubuntu machine is placed in a restricted country, but didn’t work.
Note: As I am an absolute beginner to this, I would like to kindly ask not to vote this question as dislike so it won’t be removed.
Also if there’s any other approached you think might be helpful, please don’t hesitate to share.