delphix / dxm-toolkit

The DXM-Toolkit is a collection of compiled Python command line interface (CLI) executables to assist in automating or extending the Delphix Masking Engine functionality via the APIs.
Apache License 2.0
6 stars 15 forks source link

01-DEC-2020 - Invoking dxmc from Jenkins fails #40

Open d15serge opened 3 years ago

d15serge commented 3 years ago

Executing this command directly from the OS works fine :

/home/delphix/dxm-toolkit/dxmc/dxmc job start --engine DelphixDE --envname Dev --jobname job_mask

But If put that same string and use it in Jenkins, it fails with:

Engine name DelphixDE not found in configuration

In order to make it work, I have to specify in my Jenkins pipeline a Change Directory:

sh "cd /home/delphix/dxm-toolkit/dxmc;./dxmc job start --engine DelphixDE --envname Dev --jobname job_mask"

matt63 commented 3 years ago

I faced the same problem and used the same workaround