When Anatella returns "Invalid Serial Number: check license" inside Jenkins but not inside a normal interactive Windows session, this usually means that Jenkins is not running using your own credentials. To run Jenkins with you own credentials, you must see your windows-login here (inside the "services" windows from Windows):
If you cannot run Jenkins using your own credentials, then, here is a quick "fix" so that you can use to still run Anatella inside Jenkins: You just need to save your Anatella "serial number" for "All users (Server-Wide License)". The procedure to do so is the following:
1. open the TIMi License Manager (run "C:\soft\TIMi\bin\TIMiEnterLicense.exe")
2. You should now see something like this:
3. Click on the button "Get from Current User"
4. Click on the button "Ok: Save in Registry for All Users" (administrative privileges are required for this step).
5. You should now see something like that:
If you are unable to follow the above procedure (because, for example, you do not have administrative rights), you can still do the following:
1. Create a text file named "license.xml" (using "notepad") inside the root of the TIMi installation directory. Typically, the filepath is something like: "C:\soft\TIMi\license.xml".
2. The content of the "license.xml" is the following:
To help you: Here is a template for the content of the "license.xml":
<LICENSE>
<NAME> ??? </NAME>
<SERIAL> ??? </SERIAL>
</LICENSE>
Please be aware that some uncommon Anatella functionalities might not always work properly when running Jenkins as a "local admin" (instead of running Jenkins under your own account). This includes:
* the Python home directory is defined using the global DOS environment variable "PYTHONPATH" instead of the value defined inside Anatella.
* your ODBC connections cannot be defined using a "User DSN" inside the Microsoft ODBC manager (but you can still use all the ODBC connections that are defined using a connection string or a "System DSN").
* you should be extra careful when setting-up the "Jenkins custom initialization scripts" (see point 23.2 from section 4.8.2. inside the AnatellaQuickGuide.pdf). More precisely: You must use the "long form" for the "net use" command: "net use Z: \\My_File_Server\public <password> /user:<login> /Y"
* The automatic renewal procedure for your serial number won't work: Of course, you can still renew your TIMi/Anatella serial number manually.
* see also section 4.8.2.3. of the AnatellaQuickGuide.pdf (press F1 inside Anatella to read this PDF)