Hi I have a repository with only HTML and CSS code but I would like to use the bitbucket pipelines to analyse the code in sonarcloud in the options available there is no predefined template for html and css and the website docs says to choose node as the image for the pipeline and analyse the css code but I have not been able to analyse any lines of code after a successfule build :
image: node:10.15.3 # Choose an image matching your project needs
options:
docker: true
size: 2x
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
services:
docker:
memory: 4096
caches:
sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build
steps:
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
caches:
- node # See https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
- sonar
script:
- npm install
- 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
caches:
- node
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
branches:
feature/*:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
pull-requests:
“**”:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
I would appreciate any help on this thanks