ci: coverity.yml: use env variables for clean and build commands

let's use BRIDGE_COVERITY_CLEAN_COMMAND and BRIDGE_COVERITY_BUILD_COMMAND as clean and build commands
instead of defining them seperately in a yml file.

Closes: PCF-2037
References: PCF-1795

Signed-off-by: Mouna Aloui <mouna.aloui@softathome.com>
This commit is contained in:
Mouna ALOUI 2025-10-24 11:10:37 +02:00 committed by Hela Saadani
parent 80fb40e9a8
commit 5c1806bb78
2 changed files with 2 additions and 4 deletions

View File

@ -16,6 +16,7 @@ include:
BRIDGE_COVERITY_CONNECT_USER_PASSWORD: $COVERITY_PASSPHRASE
BRIDGE_GITLAB_USER_TOKEN: $GITLAB_API_KEY_EXTERNAL
BRIDGE_COVERITY_LOCAL: true
BRIDGE_COVERITY_CLEAN_COMMAND: make clean
# INCLUDE_DIAGNOSTICS: 'true'
rules:
- if: ($CI_COMMIT_REF_NAME =~ $SCAN_BRANCHES && $CI_PIPELINE_SOURCE != 'merge_request_event')
@ -23,6 +24,7 @@ include:
BRIDGE_COVERITY_CONNECT_POLICY_VIEW: Outstanding Issues
- if: ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ $SCAN_BRANCHES && $CI_PIPELINE_SOURCE == 'merge_request_event')
before_script:
- export BRIDGE_COVERITY_BUILD_COMMAND="make -j $(nproc)"
- apt-get -qq update && apt-get install -y curl file unzip
- touch .build_failed
- mkdir -p logs

View File

@ -1,4 +0,0 @@
capture:
build:
clean-command: make clean
build-command: make -j16