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)?
Asked
Active
Viewed 458 times
2 Answers
1
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.

Yonatan Brand
- 781
- 3
- 11
0
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.

Yuvarajan
- 450
- 2
- 5
-
Thanks for your response, I have already defined that action in watch and assigned a policy to fail build if i get unapproved license violation but build wont fail, as jenkins doesn't know of x-ray and violations – magician1214 Aug 17 '22 at 04:18