Skip to content

Commit cb51c1b

Browse files
okorachokorach-sonar
authored andcommitted
Fix-prep-all-tests (#1999)
* Use run_scanner instead of scan * Run linters before creating projects
1 parent 352f430 commit cb51c1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conf/prep_all_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ function create_fresh_project {
3737
opt_token="-Dsonar.login=${token}"
3838
fi
3939
curl -X POST -u "${usertoken}:" "${url}/api/projects/delete?project=${key}"
40-
conf/scan.sh "${opts[@]}" -Dsonar.projectKey="${key}" -Dsonar.projectName="${key}" -Dsonar.host.url="${url}" "${opt_token}" "${opt_org}"
40+
conf/run_scanner.sh "${opts[@]}" -Dsonar.projectKey="${key}" -Dsonar.projectName="${key}" -Dsonar.host.url="${url}" "${opt_token}" "${opt_org}"
4141
return 0
4242
}
4343

44+
conf/run_linters.sh
45+
4446
create_fresh_project "${SYNC_PROJECT_KEY}" "${SONAR_HOST_URL_TEST:?}" "${SONAR_TOKEN_TEST_ADMIN_USER}" "${SONAR_TOKEN_TEST_ADMIN_ANALYSIS}" -nolint
4547
create_fresh_project "${SYNC_PROJECT_KEY}" "${SONAR_HOST_URL_LATEST:?}" "${SONAR_TOKEN_LATEST_ADMIN_USER}" "${SONAR_TOKEN_LATEST_ADMIN_ANALYSIS}"
4648
create_fresh_project "${SYNC_PROJECT_KEY}" "${SONAR_HOST_URL_CB:?}" "${SONAR_TOKEN_CB_ADMIN_USER}" "${SONAR_TOKEN_CB_ADMIN_ANALYSIS}"

0 commit comments

Comments
 (0)