Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,888
Community Members
 
Community Events
176
Community Groups

how to integrate sonarQube with bitbucket pipeline creation

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

1 answer

0 votes
Ajay _view26_ Community Leader Feb 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

---
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.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events