Panel | ||||
---|---|---|---|---|
| ||||
|
A 다음은 백그라운드 태스트(Background Task can be)가 될 수 있습니다:
- the import of an Analysis Analysys Report 임포트
- the execution of the computation of Views
Analysis Reports
Note
Note that analysis is not complete until the relevant Background Task has been completed. Even though the SonarQube Scanner's log shows EXECUTION SUCCESS
, the analysis results will not be visible in the SonarQube project until after the Background Task has been completed.
After a SonarQube Scanner has finished analyzing your code, the result of the analysis (Sources, Issues, Metrics) - the Analysis Report - is sent to SonarQube Server for final processing by the Compute Engine.
Those Analysis Reports are queued and processed serially. You can control the number of Analysis Reports that can be processed at a time in- Views 계산 실행
분석 보고서
Note |
---|
분석은 관련 Background Task 종료 후 완료됩니다. SonarQube Scanner의 로그에서 |
SonarQube Scanner가 코드 분석을 완료한 뒤, 분석 결과(소스 코드, 이슈 및 각종 지표) -- 분석 보고서 --는 SonarQube Server로 전달되고, 이후 Compute Enginer이 마지막 처리를 수행합니다.
이 분석 보고서들은 이후 순차적으로 처리됩니다. 동시에 처리 가능한 분석 보고서의 수는 $SQ_HOME/conf/sonar.properties (see 파일에서 sonar.ce.workerCount - Default is workerCount 속성값으로 변경할 수 있습니다(기본값 1).
Administrators can view the current queue at 시스템 관리자는 Administration > Projects > Background Tasks 메뉴를 통해 현재 대기열의 분석 보고서를 확인할 수 있습니다..
Filters
You can filter Background Tasks according to their Status필터
Backgound Tasks를 다음 기준에 따라 필터링할 수 있습니다: Pending, Success, Failed or 및 Canceled.
The "Only Latest Analysis" button will filter the Background Tasks by showing only the last import for each project.
You can also filter Background Tasks according to the starting date of import.
At the top of the page, are there are two to three counters:
버튼을 클릭하면, 각 프로젝트의 가장 최근 분석 리포트만을 표시합니다.
페이지 상단에는 2개 혹은 3개의 카운터를 표시합니다:
- pending - 대기열에서 처리 대기중인 분석 보고서의 수를 표시합니다.
- failures - 가장 최근 분석 보고서 처리에 실패한 프로젝트의 수를 표시합니다
- duration-to-date of the task currently being processed- 분석 보고서를 처리하는 동안 소요된 시간을 표시합니다.
At the Project level, when there is a pending Analysis Report waiting to be consumed, you have a "Pending" notification in the header.레벨에서는, 해당 프로젝트의 분석 보고서가 처리 대기 중 상태에 있을 경우 헤더에 "Pending"으로 표시합니다.
처리중인 Background Task는 "wait" 아이콘으로 표시합니다:
The Background Task being processing is marked with a rolling "wait" icon:
Cancel Import
You can cancel the handling of a task by clicking :
- on the red 'x' available on each line of a pending task
- on the red "bulk cancel" option next to the pending jobs count. This button cancels all pending tasks.
Logs
For each Analysis Report you have a dropdown menu allowing you to access to the "Scanner Context" showing you the configuration of the Scanner at the moment when the code scan has been run.
In case of failure, you will have another option available on this dropdown menu : "Show Error Details", to get the technical details why the processing of the Background Task failed.
Other Tasks
The Background Tasks page allows you also to follow other task executions such as, for example, Views Computation triggered by the Governance Plugin임포트 취소
다음의 방법으로 태스크 처리를 취소할 수 있습니다:
- 대기 중 상태인 태스크 목록의 'x; 버튼을 클릭합니다. 해당 태스크의 처리를 취소합니다.
- 대기 중 상태인 태스크 목록의 'bulk cancel'을 클릭합니다. 대기 중 상태인 모든 태스크의 처리를 취소합니다.
로그
분석 보고서의 드롭 다운 메뉴를 사용해 "Scanner Context"에 접속할 수 있습니다. 이 페이지는 코드 스캐닝 수행 시점의 Scanner 환경 설정 정보를 표시합니다.
분석이 실패하는 경우, 해당 드롭다운 메뉴의 "Show Error Details"를 클릭해 Background Task 처리 실패와 관련된 기술적인 세부 내용을 확인할 수 있습니다.
기타 태스크
Background Tasks 페이지에서는 Governance Plugin이 트리거한 View Computation과 같은 다른 처리 내용도 확인할 수 있습니다.