【问题标题】:Jenkins checkstyle stage error in a pipeline管道中的Jenkins checkstyle阶段错误
【发布时间】:2021-07-14 12:10:24
【问题描述】:

我正在声明式管道中执行 checkstyle 阶段并收到以下错误:

+ checkstyle canComputeNew: false, defaultEncoding: , healthy: , pattern: , unHealthy: 

workspace@tmp/durable-67a8a19c/script.sh: 3: workspace@tmp/durable-67a8a19c/script.sh: checkstyle: 未找到

checkstyle 的管道代码

stage("code quality"){
     
     steps{
       sh """    
       
       checkstyle canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
       """
       
         }

【问题讨论】:

    标签: jenkins-pipeline devops checkstyle


    【解决方案1】:

    验证您的 Jenkins 配置中的插件。也许您正在使用已弃用的插件: https://www.jenkins.io/doc/pipeline/steps/checkstyle/

    【讨论】:

      猜你喜欢
      • 2020-04-01
      • 1970-01-01
      • 2020-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多