Open MichaelSchHtc opened 1 month ago
I don't know if it is possible to run a container in another container specifically for Azure DevOps. That's what I gather from the pool named LinuxDocker
. Try the hosted agents (the free minutes per month should generally be enough for weekly runs) or an agent that is not a docker container.
The agent itself is not a container. The name (LinuxDocker) is choosen to indicate that docker is available.
All this requirements are fulfilled (Agent-Version is 2.181.2). I also tried it with another agent (that also meets this requirements) but it throws the same Exception.
I guess that I will try a hosted agent.
The change in #1246 should ideally solve the issue. I released 1.30.2
you can test and report back.
The new version (1.30.2.800) doesn't solve the problem. The same error occurs immediately after starting the dependabot-task.
Could you give an example of some of the "normal" builds that work without any problems? This will be useful to see tasks in them that work for comparison sake.
This is the requested pipeline for a "normal" build:
stages:
- stage: BuildAndTests (Reducted - here the .NET Solution and the react-app gets build / published on another agent)
- stage: Docker_Build
displayName: Docker Build
pool:
name: 'LinuxDocker'
variables:
NumericVersion: $[ stageDependencies.BuildAndTests.BuildAndTests.outputs['CreateVersionVariable.numericVersion'] ]
jobs:
- job: DockerImage
steps:
- task: Docker@2
displayName: 'Build Docker'
inputs:
containerRegistry: '<Reducted>'
repository: '<Reducted>'
command: 'build'
Dockerfile: 'src/**/Dockerfile'
tags: |
$(Build.BuildNumber)
latest
arguments: '--build-arg BUILDNUMBER=$(NumericVersion)'
- stage: Docker_Deploy
displayName: Docker Deploy
pool:
name: 'LinuxDocker'
jobs:
- deployment: <Reducted>
displayName: Deploy
environment: '<Reducted>'
strategy:
runOnce:
deploy:
steps:
- task: Docker@2
displayName: 'Push image'
inputs:
containerRegistry: '<Reducted>'
repository: '<Reducted>'
command: 'push'
tags: |
$(Build.BuildNumber)
latest
Perhaps relevant: This features are available on the agent (LinuxDocker)
Agent.Name REDUCTED Agent.Version 2.181.2 _ ./externals/node/bin/node Agent.ComputerName REDUCTED Agent.HomeDirectory REDUCTED Agent.OS Linux Agent.OSArchitecture X64 curl /usr/bin/curl docker /usr/bin/docker dotnet /usr/bin/dotnet git /usr/bin/git HOME REDUCTED InteractiveSession False INVOCATION_ID REDUCTED JOURNAL_STREAM 9:45971 LANG en_US.UTF-8 LOGNAME REDUCTED PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD REDUCTED python /usr/bin/python python3 /usr/bin/python3 sh /bin/sh SHELL /bin/bash
Describe the bug I tried to setup the dependabot on a Azure DevOps Server 2020. I installed the extension (1.30.0.776). I created the dependabot.yml-File and the pipeline. But the task in the pipeline fails immediately with this error: "The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell."
Repository It's a private (self hosted) repo.
Expected behavior I expect the dependabot to complete successfully and create the pull requests to update the old packages.
Extension
Additional context I tried to give the Project Collection Service Accounts all possible permissions. As an Agent pool i use: Ubuntu - 20.04.5 LTS (Focal Fossa). On the agent docker is installed. Docker-Version: 20.10.21, build baeda1f This agent is used for the "normal" builds and works without any problems.
The Output is:
pipeline-yaml:
dependabot-yaml: