Skip to content

Commit

Permalink
Update Jenkins_Plugin.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuay-a authored Jul 30, 2024
1 parent f75cfbf commit cb0234d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/en/guide/插件/Jenkins_Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Value:`GITPATH` Value:xxxx(路径不包含git)

在构建任务的【Build】中选择【TCA】插件并配置以下参数:

`CodeAnalysis目录绝对路径`: 拉取到本地的CodeAnalysis开源仓库目录的绝对路径(例如:/User/CodeAnalysis)
`CodeAnalysis目录绝对路径`: 拉取到本地的CodeAnalysis开源仓库目录的绝对路径(例如:/Users/data/CodeAnalysis)
`团队ID`: 在 TCA 中创建的团队的标识ID,可在TCA【团队概览】中获取“团队唯一标识”
`项目名称`: 在 TCA 中创建的项目的标识ID,可在TCA【项目概览】中获取“项目唯一标识”
`Token`: 在 TCA 的【个人中心】->【个人令牌】中获取
Expand All @@ -77,14 +77,14 @@ pipeline{
stages{
stage('Build'){
steps{
TCA(codeAnalysisPath: '/zhuay/CodeAnalysis/', teamId: 'xxxx', projectName: 'demo', token: 'xxxxxxxxxxxx', branchName: 'master', languageType: 'Java', refSchemeID: '1', scanPlan: 'model', threshold: '90', total:true)
TCA(codeAnalysisPath: '/Users/data/CodeAnalysis/', teamId: 'xxxx', projectName: 'demo', token: 'xxxxxxxxxxxx', branchName: 'master', languageType: 'Java', refSchemeID: '1', scanPlan: 'model', threshold: '90', total:true)
}
}
}
}
```
`codeAnalysisPath`: 拉取到本地的CodeAnalysis开源仓库目录的绝对路径(例如:/User/CodeAnalysis)
`codeAnalysisPath`: 拉取到本地的CodeAnalysis开源仓库目录的绝对路径(例如:/Users/data/CodeAnalysis)
`teamId`:团队ID
`projectName`: 项目名称
`token`: 在 TCA 的【个人中心】->【个人令牌】中获取
Expand Down Expand Up @@ -133,7 +133,7 @@ pipeline{
stages{
stage('Build'){
steps{
TCA(codeAnalysisPath: '/zhuay/CodeAnalysis/', teamId: 'xxxx', projectName: 'demo', token: 'xxxxxxxxxxxx', branchName: 'master', languageType: 'Java', refSchemeID: '1', scanPlan: 'model', threshold: '90', total:true)
TCA(codeAnalysisPath: '/Users/data/CodeAnalysis/', teamId: 'xxxx', projectName: 'demo', token: 'xxxxxxxxxxxx', branchName: 'master', languageType: 'Java', refSchemeID: '1', scanPlan: 'model', threshold: '90', total:true)
script{
def tca_status = readFile('tca_threshold.txt')
if (tca_status == "success") {
Expand Down

0 comments on commit cb0234d

Please sign in to comment.