After running the main project, every downstream project has test result, but the "Latest Aggregated Test Result" is no tests. How to configure the Jenkins to make all the test results display in aggregated list?
相关问题
- Jenkins - cmd is not recognized
- When using Nokogiri, how do you suppress the inser
- Where Jenkins stores plugin configuration
- Multi-branch configuration with externally-defined
- How to start pm2 website using jenkins on AWS ubun
相关文章
- dotnet restore还原nuget包时无法加载 https://api.nuget.org/
- jenkins在window集群环境中如何部署自动化发布?
- jenkins + Publish over FTP 自动部署前端React项目
- jenkins自定打包部署React前端项目遇到的问题。
- Best way to manage docker containers with supervis
- Access BitBucket payload data in Jenkins pipeline
- Jenkins Not Outputting Junit Report Info From File
- Intermittent “SVNException: svn: E175002: Connecti
Aggregate downstream test results is not obvious, and not documented. The steps below are synthesized from How To Aggregate Downstream Test Results in Hudson.
For some reason, this shell command is not rendering below, at step 2 of b's configuration
To aggregate, you need to pass a finger-printed artifact from the upstream job to the downstream job. My solution for this was to install the Copy Artifact Plugin.
For my test setup, I've created two free-style jobs
a
andb
.a
's configuration:echo $(date) > aggregate
b
aggregate
(from theecho
command above)b
's configuration:a
aggregate
xml=...
command from aboveresults.xml
This should be sufficient to have
a
aggregateb
's test results. I'm not sure if there's a way/plugin to changea
's status based on downstream results (like ifb
failed, thena
would retroactively fail).For Scripted Pipeline, Say I have:
one upstream job -
mainJob
two downstream jobs -
downStreamJob1
anddownStreamJob2
.To aggregate test result from
downstreamJob1
anddownStreamJob2
, here is what the Jenkinsfile will look like:downStreamJob1 Jenkinsfile - Archive and fingerprint the test result xml
downStreamJob2 Jenkinsfile - Archive and fingerprint the test result xml
The
artifacts
path used Fileset to grab all test report XML. Read more about fileset HEREmainJob Jenkinsfile - Copy artifact from each of the downstream jobs
The best way to make sure you have the right path for
filter
andartifacts
is to navigate to the artifact in each downstream job using this url$BUILD_URL/artifact/
where BUILD_URL is Full URL of this build, like http://server:port/jenkins/job/foo/15/