-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a pipeline for a daily SonarQube scan. https://buildkite.com/elastic/kibana-bot-sonarqube/builds/7#018ca703-4b56-4a56-b6ce-ae6630cd81e3 (ignore the pipeline name/slug, that was a copy paste error. I'll fix it after)
- Loading branch information
Showing
5 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$BUILDKITE_AGENT_NAME" =~ ^bk-agent ]]; then | ||
echo "Pipeline file triggered from outside the kibana executors, skipping pre_command" | ||
echo "Pipeline file triggered from outside the kibana executors, skipping .buildkite/scripts/lifecycle/pre_command.sh" | ||
export SONAR_LOGIN=$(vault read -field=token secret/ci/elastic-kibana/sonarqube) | ||
else | ||
source .buildkite/scripts/lifecycle/pre_command.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
steps: | ||
- label: Placeholder | ||
command: echo "Hello!" | ||
- label: ":sonarqube: Continuous Code Inspection" | ||
agents: | ||
image: docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest | ||
memory: 16G | ||
command: /scan-source-code.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
sonar.projectKey=elastic_kibana_AYvOkAHeQZlFqhqWIr9Y | ||
sonar.projectName=Kibana | ||
sonar.host.url=https://sonar.elastic.dev | ||
|
||
sonar.sources=\ | ||
packages, \ | ||
plugins, \ | ||
src, \ | ||
x-pack/packages, \ | ||
x-pack/plugins | ||
sonar.exclusions=\ | ||
**/*.mock.*, \ | ||
**/*.mocks.*, \ | ||
**/*.spec.*, \ | ||
**/*.stories.js, \ | ||
**/*.stories.ts, \ | ||
**/*.story.js, \ | ||
**/*.story.ts, \ | ||
**/*.test.*, \ | ||
**/*.test.mocks.*, \ | ||
**/.storybook/**/*, \ | ||
**/__fixtures__/**/*, \ | ||
**/__jest__/**/*, \ | ||
**/__mocks__/**/*, \ | ||
**/__snapshots__/**/*, \ | ||
**/__stories__/**/*, \ | ||
**/__tests__/**/*, \ | ||
**/cypress/**/*, \ | ||
**/dev_docs/**/*, \ | ||
**/docs/**/*, \ | ||
**/e2e/**/*, \ | ||
**/fixtures/**/*, \ | ||
**/ftr_e2e/**/*, \ | ||
**/integration_tests/**/*, \ | ||
**/jest*, \ | ||
**/manual_tests/**/*, \ | ||
**/mock_responses/**/*, \ | ||
**/mocks/**/*, \ | ||
**/node_modules/**/*, \ | ||
**/packages/**/*, \ | ||
**/public/**/*, \ | ||
**/scripts/**/*, \ | ||
**/storybook/**/*, \ | ||
**/stubs.ts, \ | ||
**/test/**/*, \ | ||
**/test_data/**/*, \ | ||
**/test_mocks.ts, \ | ||
**/test_resources/**/*, \ | ||
**/tests/**/*, \ | ||
src/dev/**/* | ||
|
||
sonar.javascript.node.maxspace=8192 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters