【发布时间】:2019-04-14 21:30:52
【问题描述】:
我正在尝试配置 Bitbucket 管道以执行 SonarQube 管道,但 Bitbucket 抱怨管道步骤为空、null 或缺失。
我已将 SONAR_TOKEN 定义为具有正确标记的项目变量。
这是我当前的 bitbucket-pipeline.yml 文件:
image: atlassian/default-image:2
clone:
depth: full
definitions:
caches:
sonar: ~/.sonar/cache
steps:
- step: &sonarcloud
name: Analyze on SonarCloud
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:0.1.5
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
pipelines:
branches:
'*':
- step: *sonarcloud
有什么想法吗?
【问题讨论】:
标签: bitbucket bitbucket-pipelines