Using the Scripts with ScriptRunner

FlexNet Code Insight 6.13.3

These scripts will only function properly when executed through the ScriptRunner framework. For instance, in a stand-alone environment (both the core server and scan server running on the same machine) with IP address 111.122.133.144, invoke ScriptRunner in the following manner. Use the -u flag to specify the authorized user and the -c flag to specify the core server URL:

./scriptRunner.sh -u username_foo -c http://111.122.133.144:8888/palamida/

If this is your first time running scriptRunner, you will be prompted to enter a JWT token. Paste the token in for authorization. For information about generating a JWT token, see Generating a JWT Token.

Note • The flags used with ScriptRunner are not passed through to the export and import scripts. The -c flag is only used by ScriptRunner. You must still pass into the export script the server name from which to export a workspace.

To pass the server name from which to export a workspace to the export script use the following:

exportWorkspaceData.groovy -server http://111.122.133.144:8888/palamida/

Otherwise the export script will use its hard-coded server name default value (i.e., localhost). In the above case, the entire command would be:

./scriptRunner.sh -u username_foo -c http://111.122.133.144:8888/palamida/../scripts/exportWorkspaceData.groovy -server http://111.122.133.144:8888/palamida/

Note • Ensure that the URL passed to the -c flag always contains a trailing “/”.