Код: Выделить всё
codeql database init --source-root Build.Repository.LocalPath --language java, --begin-tracing codeql-db --overwrite --db-cluster
Код: Выделить всё
Resolving extractor java.
Successfully loaded extractor Java (java) from /apps/ado/tools/codeql/java.
Created skeleton CodeQL database at /apps/ado/vsts/agent2/_work/3335/codeql-db. This in-progress database is ready to be populated by an extractor.
Затем код создается с помощью Gradle.
Затем я дорабатываю базу данных:
Код: Выделить всё
codeql database finalize codeql-db
Код: Выделить всё
No source code was seen and extracted to /apps/ado/vsts/agent2/_work/3335/codeql-db.
This can occur if the specified build commands failed to compile or process any code.
- Confirm that there is some source code for the specified language in the project.
- For codebases written in Go, JavaScript, TypeScript, and Python, do not specify
an explicit --command.
- For other languages, the --command must specify a "clean" build which compiles
all the source code files without reusing existing build artefacts.
Подробнее здесь: https://stackoverflow.com/questions/773 ... adle-build
Мобильная версия