CLI results - Jenkins - Rules documentation
Hi,
Regrading CLI results via Jenkins.
When trying to open doc rules documentation , I get error on the page:
parasoftserver\grs..... can not access.
Only after I successfully logged on with my credentials in a separate browser tab , I can open rule documentation page via Jenkins results page.
Is there a configuration to set credentials via configuration file in order to avoid such
case ?
Thanks
Best Answers
-
Hello @elch,
We do not have any SingleSingOn or similar mechanism e.g. via file as you suggested.
However after you log in in a separate tab for the first time, this fact should be preserved in http session and subsequent visits on rule documentation in the same session should not require logging in.thank you,
Janusz
5 -
Hi @elch
I have discussed this topic yesterday with DTP project Team Leads and I have confirmed that currently access to rule documentation required login to DTP.
I have requested change of this to allow free access - this change will be provided in next update of DTP product - probably 10.4.1.
regards Maciek5
Answers
-
Hi @elch,
My understanding is that you imported some static analysis findings to Jenkins using the Parasoft Findings plugin and you are trying to open rules documentation.
You can configure access to the rule documentation in your settings file specified in "Publish Parasoft analysis results > Settings" option.
To configure access to the online rule documentation you need to set the following properties in the settings file:
- dtp.server
- dtp.port
- dtp.user
- dtp.password
Have you tried to set these properties?
For more details see the Parasoft Findings plugin documentation:
https://docs.parasoft.com/display/SOAVIRT9105/Parasoft+Findings+for+Jenkins+10.3#ParasoftFindingsforJenkins10.3-Configuration1 -
Hi,
Thanks on your response.
Of course I already set it up, It seems that users need to make a separate log in in a separate browser tab\page in order to display the rule doc , otherwise the user get some http error regrading a rule page.
Only by the steps Janusz mentioned the rule can be displayed.Any other suggestions ?
Thanks
0 -
Addition.
If I set up local documentation path , Is it possible to set up local documentation path with DTP details.Thanks
0 -
Hi @elch
Thanks for the clarification.
You are right that users need to make a separate log in in order to display the rule doc on DTP. The properties from the settings file are used only to prepare the rule doc urls.Regarding usage of local documentation. To get it working you need to set the following property:
report.rules=/rules/doc The property refers to folder with the rules documentation provided by the engine which produced the report. The content should be the same as the content available online.
You may need to remove all properties related with DTP in the settings file to avoid calling the online rule doc when the local one is missing.Hope that it helps you.
1 -
Hi @elch
I'm not sure if understand your issue properly but I guess that you pass the same settings file to both the engine and the Parasoft Findings plugin. And also, your settings file contains DTP properties for licensing.
To clarify, the Parasoft Findings plugin doesn't need any settings to check license. So, even if you are using DTP license you can link to the local documentation.
In order to link the local rules documentation you can:
1. use your existing settings file (with DTP properties) and add only property for a location to the rules documentation on the disk. It should work properly because the higher priority has local documentation than the online.
2. use a separate settings file for the Parasoft Findings and specify inside it only a property needed for the rules documentation.0 -
Hi @elch
For linking the rules documentation it is enough to create a new properties file with the following properties:
for local documentation
- report.rules
or for online documentation
- dtp.server
- dtp.port
- dtp.user
- dtp.password
Next, refer to that file from Configure> Build Settings > Publish Parasoft analysis results > Settings
1