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
-
-
+
+