From e74067b60422fc42e1d2228b2798172bc2a116d6 Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 17 Apr 2025 15:09:59 +0800 Subject: [PATCH] + [pipeline] fix lint pipeline. --- .gitfox/lint.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitfox/lint.yaml b/.gitfox/lint.yaml index 2ad6fe0429..f7fa3278f2 100644 --- a/.gitfox/lint.yaml +++ b/.gitfox/lint.yaml @@ -9,6 +9,14 @@ spec: SONAR_HOST_URL: https://codescan.qc.oop.cc SONAR_TOKEN: ${{ secrets.get("codescan_sonar_token") }} steps: + - name: 预处理 + type: run + spec: + container: + image: hub.zentao.net/ci/alpine:3.19 + script: + - SONAR_PROJECT_KEY=$(echo $CI_REPO_NAME | tr '/' ':') + - echo "export SONAR_PROJECT_KEY=$SONAR_PROJECT_KEY" >> $GITFOX_CUSTOM_ENV - name: 配置scanner type: run spec: @@ -42,6 +50,7 @@ spec: spec: container: image: hub.zentao.net/ci/sonar-scanner-cli:10 + pull: always script: - echo "run sonar-scanner" - export TASK_ID=$(sonar-scanner -Dsonar.token=${SONAR_TOKEN} | grep -o 'task?id=.*' | cut -d = -f 2)