-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create reports under Build Artifacts(AST-64900) #340
Conversation
@@ -356,6 +356,31 @@ public void close() throws IOException { | |||
ArtifactArchiver artifactArchiverJson = new ArtifactArchiver(workspace.toURI().relativize(jsonReportFilePath.toURI()).toString()); | |||
artifactArchiverJson.perform(run, workspace, envVars, launcher, listener); | |||
|
|||
if (scanConfig.getAdditionalOptions().contains("--report-format")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe set it in another private method with a name that will describe what you ar doing here
@@ -103,6 +110,39 @@ public void failWrongCheckmarxInstallation() throws Exception { | |||
this.jenkins.assertBuildStatus(Result.FAILURE, build); | |||
this.jenkins.assertLogContains("Please configure the build properly and retry.", build); | |||
} | |||
@Test | |||
public void successCheckmarxScanAndVerifyArtifacts() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update ethe test name inder when_given_then(should) concentration and have comments of the steps cause it's hard to understand what it does
Policy Management Violations
Fixed Issues
|
Saving the report files generated under Build Artifacts to allow easy access.
Testing:
Added an integration test that builds a job and runs a scan with report generation parameters, checking whether the expected files are present in the archive.
Submitter checklist