set hardware Target through Jenkins pipeline

I am trying to select an user defined target hardware for codegeneration using Jenkins pipeline script. The code generator used is that from dSPACE-Targetlink. I can select the user defined target hardware if i use the code generator manually. But if i use Jenkins job (scheduled automated code generation), i get the error during export of the generated code, that the target hardware is not recognised. is there a solution or a work-around for this?