From 4665be0640a668d11562c5e4641c6153085cd3a1 Mon Sep 17 00:00:00 2001 From: Nuget Ninja Date: Wed, 13 Nov 2024 08:32:41 +0000 Subject: [PATCH] Auto csproj fix and update by bot. --- .gitlab-ci.yml | 6 +++++- src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a4b4328..a4fa6f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,9 @@ before_script: - 'echo "Hostname: $(hostname)"' - 'dotnet --info' +variables: + GIT_CLONE_PATH: '$CI_BUILDS_DIR/$CI_PROJECT_NAME/$CI_PIPELINE_ID' + restore: stage: build script: @@ -30,7 +33,8 @@ lint: needs: - build script: - - jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml + # 3 times retry because sometimes the first time will fail + - jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml || jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml || jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml # Remove the warning of UnusedAutoPropertyAccessor InconsistentNaming - sed -i '/InconsistentNaming/d' analyze_output.xml - sed -i '/AssignNullToNotNullAttribute/d' analyze_output.xml # This is because jetbrains is not smart enough to understand the nullability of C# 8.0 diff --git a/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj b/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj index ccc4edc..66ca00b 100644 --- a/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj +++ b/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj @@ -10,8 +10,8 @@ enable - - + +