Is there a way we can fail a build in jenkins after xray scan and getting an unapproved license violation from jfog xray (No pipeline script)?
Is there a way we can fail a build in jenkins after xray scan and getting an unapproved license violation from jfog xray (No pipeline script)?
If the Xray service has been defined with an action under the watch to fail a build upon detecting a vulnerability or a license violation, it will fail the build. Please check, Creating Xray policies: Automatic actions.
In order to integrate your Jenkins (or any CI tool), you can follow this wiki page.
As can be seen from the link provided, in order to integrate between the CI and Xray a pipeline job is required (declarative or scripted).
I hope this helps and clarifies more.