I have the following pipeline set up for pull requests:
clone:
depth: 1
options:
max-time: 15
definitions:
services:
docker:
memory: 6144
steps:
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
size: 2x
clone:
depth: 1 # this doesnt work for some reason...
script:
- pipe: sonarsource/sonarcloud-scan:1.2.0
variables:
SONAR_TOKEN: $SONAR_TOKEN
pipelines:
pull-requests:
'**':
- step: *build-test-sonarcloud
The clone depth works fine for the custom/branch pipelines but not for the pull-request pipeline.
Ive tried setting clone enabled to false and that seems to apply fine so not sure why clone depth isnt being picked up.