Skip to main content

Continuous integration with Gurobi

Answered

Comments

6 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Due to license restrictions, this is not possible with an academic license - except if your CI is running locally and can for example access a site license or is within the academic domain.

    0
  • Even Kallevik
    Gurobi-versary
    First Comment
    First Question

    So if I can run Jenkins on-premise at a university server it might be possible? Do you have any documentation on this or pointers as to where to start?

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Running Gurobi on a Jenkins server or some other CI implementation is not different than running it locally. You just need to make sure that a valid license is available and accessible from the server.

    Do you have a site license at your university? Then you only need to specify the license or token server.

    Otherwise, you may create a local single-user academic license for the CI server.

    In all cases, please ensure that the CI server is only used for academic purposes to not violate our license conditions.

    0
  • Vineet Bansal
    Gurobi-versary
    First Comment
    First Question

    The practical issue with using grbgetkey in a CI environment is that you can only activate a key once, while the CI workflow is run many times during the course of code development. So if there's no way for license keys (.lic files) to be hostname/hostid independent, or if one cannot programmatically request a new keycode from Gurobi, I don't see how one could do this..

    So the essential issue here seems to me to be this:

    Although I am using the academic license legitimately to develop academic open-source code (which will require users to have their own Gurobi license to use the Gurobi-specific parts of my application), as the developer of the code I cannot predict which machine (i.e. which hostname) will be assigned to test my code by my CI provider, and thus I cannot test my code. Even if I was using my own Jenkins installation, there is no guarantee that the worker nodes I would be using for testing would have a predictable hostname.

    Any pointers here would be appreciated...

    0
  • Gwyneth Butera
    Gurobi Staff Gurobi Staff

    Do you have a site license at your university? Then you only need to specify the token server.

    0

Post is closed for comments.