If you want a direct download link for the raw report files (like the original JSON or a ZIP of the HTML), you must archive them as artifacts. Steps to Archive: Go to your Job Configuration. Add a Post-build Action: Archive the artifacts.
In Files to archive, enter the path to your reports (e.g., **/target/cucumber-reports/*.html ). Save and run the build.
Ensure your Jenkins user account has "Artifact Download" permissions enabled in the Global Security settings.
post { always { cucumber buildStatus: "null", jsonReportDirectory: 'target', fileIncludePattern: '**/*.json' archiveArtifacts artifacts: 'target/cucumber-html-reports/**', fingerprint: true } } Use code with caution. Troubleshooting Common Issues
Add the "Cucumber reports" post-build action to your job configuration. Method 1: Downloading via the Jenkins Web UI
The files will now appear as a downloadable link on the Build Summary page. Method 3: Using the Jenkins REST API
If you want a direct download link for the raw report files (like the original JSON or a ZIP of the HTML), you must archive them as artifacts. Steps to Archive: Go to your Job Configuration. Add a Post-build Action: Archive the artifacts.
In Files to archive, enter the path to your reports (e.g., **/target/cucumber-reports/*.html ). Save and run the build.
Ensure your Jenkins user account has "Artifact Download" permissions enabled in the Global Security settings.
post { always { cucumber buildStatus: "null", jsonReportDirectory: 'target', fileIncludePattern: '**/*.json' archiveArtifacts artifacts: 'target/cucumber-html-reports/**', fingerprint: true } } Use code with caution. Troubleshooting Common Issues
Add the "Cucumber reports" post-build action to your job configuration. Method 1: Downloading via the Jenkins Web UI
The files will now appear as a downloadable link on the Build Summary page. Method 3: Using the Jenkins REST API