The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to integrate sonarQube with bitbucket pipeline creation

Krishnai Shrikant Jirange
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2022

After adding code in bitbucket yaml. I am not able to build that code 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ajay _view26_
Community Champion
February 22, 2022

Hi @Krishnai Shrikant Jirange 

Welcome to the community!

Can you add logs or the yaml file for the community members to help you out?

Cheers

Ajay

Krishnai Shrikant Jirange
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2022

---
image: "mcr.microsoft.com/dotnet/core/sdk:3.1"
pipelines:
branches:
Masterbranch:
-
step:
script:
-
pipe: "sonarsource/sonarqube-scan:1.0.0"
variables:
SONAR_HOST_URL: ""
SONAR_TOKEN: 

-
step:
artifacts:
- publish/Core_HelloWorld.zip
caches:
- dotnetcore
name: Package
script:
- "apt-get update"
- "apt-get install zip -y"
- "dotnet build"
- "dotnet publish ./Core_HelloWorld/Core_HelloWorld.csproj -c Release -o ./publish"
- "cd ./publish"
- "zip -r Core_HelloWorld.zip ."
-
step:
deployment: test
name: "Deploy to test"
script:
-
pipe: "microsoft/azure-web-apps-deploy:1.0.3"
variables:
AZURE_APP_ID: 
AZURE_APP_NAME: BBWEBAPP-dev
AZURE_PASSWORD: 
AZURE_RESOURCE_GROUP: BBPOC-dev
AZURE_SUBSCRIPTION_ID: 
AZURE_TENANT_ID: 
ZIP_FILE: publish/Core_HelloWorld.zip
trigger: manual
default:
-
step:
caches:
- dotnetcore
name: "Build and Test"
script:
- "dotnet restore"
- "dotnet build"
- "dotnet test"

 

In Above  code only azure values  are not visible here but I have used in my original file.

TAGS
AUG Leaders

Atlassian Community Events