Hi, I’m unable to push the octopus package in Azure DevOps to Octopus.
The error is: Failed to execute push. getaddrinfo ENOTFOUND octopus.xxx.com (xxx is my url)
I connected Octopus through Connection Services with my apikey.
This is my yaml:
trigger:
- azure-pipelines
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:RunOctoPack=true /p:OctoPackPackageVersion=1.0.$(Build.BuildNumber) /p:OctoPackEnforceAddingFiles=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: OctopusPack@4
inputs:
PackageId: 'MyPackageId'
PackageFormat: 'Zip'
PackageVersion: '$(Build.BuildNumber)'
- task: OctopusPush@6
inputs:
OctoConnectedServiceName: 'Octopus Deploy'
Space: 'default'
Packages: 'MyPackageId.$(Build.BuildNumber).zip'
Replace: 'true'
The error is in task OctopusPush@6
Does anyone know what this error could be?