Skip to content
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

JFrog plugin - Local jfrog CLI Scan result output into a Junit-formatted file #21

Open
Ceddaerrix opened this issue Jan 23, 2023 · 0 comments
Labels
feature request New feature or request

Comments

@Ceddaerrix
Copy link

Is your feature request related to a problem? Please describe.

When the Jenkins with a stage as follow:

stage('Apply JFrog X-Ray Scanning') {
tools { jfrog 'jfrog-cli' }
steps {
	script {					
		// Show the installed version of JFrog CLI.
		jf '-v'
		
		// Show the configured JFrog Platform instances.
		jf 'c show'
		
		// Ping Artifactory.
		jf 'rt ping'

		// Start local X-Ray scan
		jf "scan ${WORKSPACE}/**/my-artifact.tar.gz"
	}
}

The scan results are shown in the build log/stdout as a table (the default format).
Such output would be very useful in the Jenkins build if it could be persisted as a build artifact (with the archiveArtifacts step) or as tests results (with the Junit step).

Describe the solution you'd like to see

Multiple approaches on the matter:

  • JFrog plugin to allow outputting the CLI stdout into a file in the build workspace
  • jfrog-cli scan to support the junit format and allow outputting it into a file

Describe alternatives you've considered

No response

Additional context

No response

@Ceddaerrix Ceddaerrix added the feature request New feature or request label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant