We may also make these changes in the artifactory.config.latest.xml file from the backend of the Artifactory server. To achieve the same please follow the below steps:
1. In the Artifactory instance via terminal navigate to $JFROG_HOME/var/etc/artifactory/and open
the artifactory.config.latest.xml file.
2. Take a backup of this file before you make the changes for the safer side.
3. Edit the file, search the line for </addon>, and add the below lines to the config descriptor.
4. Rename the file $JFROG_HOME/var/etc/artifactory/artifactory.config.latest.xml to
$JFROG_HOME/var/etc/artifactory/artifactory.config.import.xml
5. Artifactory (for high availability setup a rolling restart is required).
6. Try saving the Xray settings again, we should be able to enable Xray now.
1. In the Artifactory instance via terminal navigate to $JFROG_HOME/var/etc/artifactory/and open
the artifactory.config.latest.xml file.
2. Take a backup of this file before you make the changes for the safer side.
3. Edit the file, search the line for </addon>, and add the below lines to the config descriptor.
<xrayConfig> <enabled>true</enabled> <baseUrl>http://localhost:8046/xray/</baseUrl> <user></user> <password></password> <artifactoryId>default</artifactoryId> <xrayId></xrayId> <allowDownloadsXrayUnavailable>true</allowDownloadsXrayUnavailable> <allowBlockedArtifactsDownload>false</allowBlockedArtifactsDownload> <blockUnscannedTimeoutSeconds>60</blockUnscannedTimeoutSeconds> </xrayConfig>
4. Rename the file $JFROG_HOME/var/etc/artifactory/artifactory.config.latest.xml to
$JFROG_HOME/var/etc/artifactory/artifactory.config.import.xml
5. Artifactory (for high availability setup a rolling restart is required).
6. Try saving the Xray settings again, we should be able to enable Xray now.