Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins gitlab gui不显示从阶段测试返回的文件报告_Jenkins_Gitlab_Jenkins Pipeline - Fatal编程技术网

Jenkins gitlab gui不显示从阶段测试返回的文件报告

Jenkins gitlab gui不显示从阶段测试返回的文件报告,jenkins,gitlab,jenkins-pipeline,Jenkins,Gitlab,Jenkins Pipeline,我正在为一个项目构建一个管道,我们使用gitlab和jenkins作为构建和测试的外部工具 我不明白为什么jenkins返回的报告会作为作业显示在gitlab gui中,而不是显示在选项卡测试中 见图: 我使用gitlab的webhook作为jenkinspipeline运行此程序 这就是我的Jenkins文件的外观,我怀疑问题出在这里,但我对Jenkins文件是新手 pipeline { agent any stages { stage ('Example Bu

我正在为一个项目构建一个管道,我们使用gitlab和jenkins作为构建和测试的外部工具

我不明白为什么jenkins返回的报告会作为作业显示在gitlab gui中,而不是显示在选项卡测试中

见图:

我使用gitlab的webhook作为jenkinspipeline运行此程序

这就是我的Jenkins文件的外观,我怀疑问题出在这里,但我对Jenkins文件是新手

pipeline {
    agent any
    stages {
       stage ('Example Build') {
          steps {
             echo 'Notify GitLab build pending'
             updateGitlabCommitStatus name: 'build', state: 'pending'
             sh 'gcc -Wall helloWorld.c -o helloWorld'
             updateGitlabCommitStatus name: 'build', state: 'success'
          }
       }
       stage ('Example Test') {
           steps {
               echo 'Notify GitLab tests pending'
               updateGitlabCommitStatus name: 'Tests', state: 'pending'
               sh './startTest.sh'
               updateGitlabCommitStatus name: 'Tests', state: 'success'

           }
       }
    }
 }