C# Class LuckyCIPost.Controller.PostInfoController

Inheritance: ApiController
Show file Open project: hddevteam/luckyci

Public Methods

Method Description
PostInfoFunction ( [ postInfo ) : string
SaveInfoToDataBase ( ProjectInfo projectInfo, string dbPath, string logPath ) : bool

编译完成之后,对本次项目信息进行存储

buildProject ( ProjectInfo projectInfo, string pushBranch, string CIConfigPath ) : ProjectInfo

收到post信息,首先对分支进行切换,然后git pull拉取本分支的最新代码,最后再进行项目的编译工作

Method Details

PostInfoFunction() public method

public PostInfoFunction ( [ postInfo ) : string
postInfo [
return string

SaveInfoToDataBase() public method

编译完成之后,对本次项目信息进行存储
public SaveInfoToDataBase ( ProjectInfo projectInfo, string dbPath, string logPath ) : bool
projectInfo common.DTO.ProjectInfo 项目信息
dbPath string 数据库路径
logPath string 日志路径
return bool

buildProject() public method

收到post信息,首先对分支进行切换,然后git pull拉取本分支的最新代码,最后再进行项目的编译工作
public buildProject ( ProjectInfo projectInfo, string pushBranch, string CIConfigPath ) : ProjectInfo
projectInfo common.DTO.ProjectInfo 项目信息
pushBranch string 操作的分支
CIConfigPath string 项目config路径
return common.DTO.ProjectInfo