Compare commits

...

2 Commits

Author SHA1 Message Date
黄昕 a41086aca6 1. 增加gitlab-ci支持 2024-03-07 17:21:20 +08:00
黄昕 01bbee1b24 1. 增加gitlab-ci支持 2024-03-07 17:20:57 +08:00
2 changed files with 11 additions and 13 deletions

View File

@ -4,22 +4,22 @@ stages :
- package
# 代码质量检查
sonarqube-check :
stage : sonarqube-check
tags :
sonarqube-check:
stage: sonarqube-check
tags:
- linux-maven
image : maven:3-eclipse-temurin-17
variables :
image: maven:3.9.3-eclipse-temurin-17
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH : "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache :
key : "${CI_JOB_NAME}"
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script :
script:
- mvn verify sonar:sonar -DskipTests
allow_failure: true
only :
only:
- merge_requests
- master
- main

View File

@ -1,12 +1,11 @@
package com.cf.cs.restful.controller;
import com.cf.cs.base.annotation.OperationLogAnnotation;
import com.cf.cs.crypto.annotation.DecryptionProtocol;
import com.cf.cs.crypto.annotation.EncryptionProtocol;
import com.cf.cs.protocol.pojo.po.BaseRespStatus;
import com.cf.cs.protocol.pojo.po.VersionInfo;
import com.cf.cs.protocol.pojo.vo.ProtocolResp;
import com.cf.cs.protocol.pojo.vo.VersionResp;
import com.cf.cs.base.annotation.OperationLogAnnotation;
import com.cf.cs.restful.configure.ProjectGitVersionInfo;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
@ -14,7 +13,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**