Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debricked always fails in AzureDevops #293

Open
johnstaveley opened this issue Jan 15, 2025 · 0 comments
Open

Debricked always fails in AzureDevops #293

johnstaveley opened this issue Jan 15, 2025 · 0 comments

Comments

@johnstaveley
Copy link

I am trying to run debricked on my .net project. I always receive the following errors:

Scanner started...
Integration: azureDevOps
Working directory: /home/vsts/work/1/s
✗ Resolving AcceptanceTests/AcceptanceTests.csproj: failed
✗ Resolving Api.IntegrationTests/Api.IntegrationTests.csproj: failed
✗ Resolving Api.UnitTests/Api.UnitTests.csproj: failed
✗ Resolving Api/Api.csproj: failed
✗ Resolving Common.UnitTests/Common.UnitTests.csproj: failed
✗ Resolving Common/Common.csproj: failed
✗ Resolving MongoData/MongoData.csproj: failed
✗ Resolving Test.Common/Test.Common.csproj: failed
✗ Resolving Web.UnitTests/Web.UnitTests.csproj: failed
✗ Resolving Web/Web.csproj: failed
✗ Resolving Web/wwwroot/lib/blueimp-file-upload/bower.json: failed
✓ Resolving Web/wwwroot/lib/chosen-1.8.7/composer.json: done
✓ Resolving Web/wwwroot/lib/jquery-ui/package.json: done

...

MongoData/MongoData.csproj

  • Critical: installing dependencies failed
    No specific documentation for this problem yet. If you would like this message to more informative for this error, please create an issue here: https://github.com/debricked/cli/issues
    /usr/bin/dotnet restore MongoData.csproj --use-lock-file --lock-file-path packages.lock.json

...

##[error]Bash exited with code '1'.
Finishing: Debricked scan

I assume this is causing the debricked process to fail. However if I look in debricked it analyses the dependencies ok.

My Azure Devops build pipeline:

trigger:
branches:
include:
- '*' # Run on all branches
exclude:
- 'master' # Excluding master as we do not use this

resources:
- repo: self

stages:
- stage: Test
displayName: Test
jobs:
- job: Test
displayName: Debricked scan
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked scan
displayName: Debricked scan
env:
DEBRICKED_TOKEN: $(DEBRICKED_TOKEN)
EXCLUDED_DIRECTORIES: "Api.UnitTests,Common.UnitTests,Web.UnitTests"

This used to work a long time ago. Why not now?

@johnstaveley johnstaveley changed the title Debricked always fails Debricked always fails in AzureDevops Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant