I am trying to compute the quality gate check for my repository in bitbucket by deploying the code to sonarcloud . The repository contains mostly python code and I initially created a separate branch from master branch to run the analysis . There it worked but the same analysis no longer works on the master branch .
image: python:3.8
options:
docker: true
size: 2x
clone:
depth: full
definitions:
services:
docker:
memory: 4096
caches:
sonar: ~/.sonar/cache
steps:
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
caches:
- pip
- sonar
script:#- python3 -m unittest discover - pipe: sonarsource/sonarcloud-scan:1.2.0 - step: &check-quality-gate-sonarcloud name: Check the Quality Gate on SonarCloud script: - pipe: sonarsource/sonarcloud-quality-gate:0.1.4
pipelines:
branches:
feature/*:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
master:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloudpull-requests:
“**”:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
The analysis worked for a branch taken out of master but the same does not work in the master branch
I am uploading the log file from the master branch build analysis
pipelineLog-8.txt (5.8 KB)