# gate api **Repository Path**: jet_wang_dev/gate-api ## Basic Information - **Project Name**: gate api - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-30 - **Last Updated**: 2023-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 说明 1,在构建pipeline的最开始执行命令行工具获取jenkins参数并暂存,在构建结束后,调用测试接口进行数据对接; 2,CI流水线获取增量代码单元测试覆盖率并推送测试平台,同时存储数据到数据库,每次调用命令行工具就触发一次; ### CM & Gate API Intergration ##### Usage: get program version ```shell​ CMGateAPI.exe version ``` query project id by name ```shell​ CMGateAPI.exe getJiraProjectId --ju wangjia117 --jp iTZBALbIZk7aDSMQ4k4D --uri 192.168.5.26:1180 --gu cmteam --gp 2f9f5e5657de8ab --project SOAR ``` POST deploy data to Gate ​ ```shell​ CMGateAPI.exe startDeploy --ju wangjia117 --jp iTZBALbIZk7aDSMQ4k4D --uri 192.168.5.26:1180 --gu cmteam --gp 2f9f5e5657de8ab --project SOAR --versionname SOAR_1.21.22 --component cmQueryService --envname QA ``` #### Jenkins Intergration - call before deploy 下载程序 Windows版本 ```shell Set-ExecutionPolicy Remotesigned -Force (new-object Net.WebClient).DownloadFile('http://pilot-nexus.company.com.cn:8081/nexus/content/repositories/software/cm/tools/cli/CMGateAPI/v2.0/CMGateAPI-v2.0.exe','CMGateAPI.exe') ``` Linux版本 ```shell wget http://pilot-nexus.company.com.cn:8081/nexus/content/repositories/software/cm/tools/cli/CMGateAPI/v2.0/CMGateAPI-v2.0.0 -O CMGateAPI chmod 755 CMGateAPI ``` 获取程序版本信息 ```shell CMGateAPI.exe version ``` 获取JIRA项目ID ```shell CMGateAPI.exe getJiraProjectId --ju wangjia117 --jp iTZBALbIZk7aDSMQ4k4D --project SOAR ``` 开始发布 ```shell​ CMGateAPI.exe startDeploy --ju wangjia117 --jp iTZBALbIZk7aDSMQ4k4D --uri 192.168.5.26:1180 --gu cmteam --gp 2f9f5e5657de8ab --project SOAR --versionname SOAR_1.21.22 --envname QA --teams "ACE TAP" --stacks "TapTradingDataServices TapTradingServices" --services "cmQueryService cmQueryServiceDemo" ``` #### 交叉编译 参考make.sh ​