Hi all,
I am trying to use new pipes sharing cache between my previous step and the pipes but the cache is ignored.
My configuration is:
pipelines:
default:
- step:
name: Tests and Coverage
script:
- go test -json $(go list ./... | grep -v mock) -cover -coverpkg $(go list ./... | grep -v mock | tr '\n' ',') -coverprofile reports/cover.out
- step:
caches:
- coverage
name: Send SonarCloud Metrics
script:
- pipe: sonarsource/sonarcloud-scan:0.1.5
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
EXTRA_ARGS: -Dsonar.projectKey=file-processor -Dsonar.organization=fernando-soliva -Dsonar.go.coverage.reportPaths=reports/cover.out
No metrics are sent to sonar and cover.out is ignored but with sonnar-scanner I got all work ok.
sonar-scanner -Dsonar.projectKey=file-processor -Dsonar.organization=fernando-soliva -Dsonar.login=${SONAR_TOKEN} -Dsonar.go.coverage.reportPaths=reports/cover.out
I didn't find any documentation to help more. There is something wrong and I am not seeing?
Tks
Hi @Fernando Soliva ,
You'll have to define a custom cache. This saves caches from a custom directory. Also, have caches as your first step.
definitions:
caches:
coverage: <custom directory>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.