Xray enables integration with Jenkins through the "Xray for JIRA Jenkins Plugin." Here you will find some steps to install and configure for both hosts Server and Cloud.
At the end of this page, you will find links for detailed documentation.
1º Install Jenkins
2º Download Xray for Jira Jenkins Plugin (2.2.0)
https://docs.getxray.app/display/XRAYCLOUD/Xray+for+Jira+Jenkins+Plugin+2.6.1+Release+Notes
3º Configuration
These steps are made just only once.
4º Configuration of Jira Servers
Cloud
Configuration alias – define a name;
Hosting – Cloud
Credentials – API Keys
Server
For detailed information, please follow this link.