We are running dotnet build which is working fine. However, when trying to add another step with integration to sonarQube, then it fails with the curl missing.
I was wondering how to solve this problem - whether I can in each step define different image or install curl?
This is our bitbucket-pipelines.yaml:
image: microsoft/dotnet:2.1.300-sdk-alpine
pipelines:
default:
- step:
caches:
- dotnetcore
- dotnet restore
- dotnet build
# sonar update
- step:
script:
- apt-get update && apt-get install -y unzip git curl
- curl --insecure -OL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-2.8.zip
fails here with information curl is not found.
Any help is appreciated. I'm new in this area. Thanks a lot