Re: Execute two jobs in Jenkins without losing session

14 views
Skip to first unread message

gaurav kodmalwar

unread,
Apr 27, 2015, 11:42:51 PM4/27/15
to jenkins...@googlegroups.com, jenkin...@googlegroups.com
Hi All,

I have configured Jenkins for executing multiple SAS jobs sequentially
but libraries defined in first job being used by another job however
second jobs unable to identify those libraries. When I redefined
libraries in second job then issue got resolved. This issue doesn't
come up if I run same job in windows task scheduler. I suspect that
Jenkin is executing all jobs in a new sessions, how can I configure to
run all sequential jobs in a single session?

By the way, I am calling my sas jobs through windows batch and that
windows batch call is configured in Jenkin\Task Scheduler. In Jenkins,
I selected option "Execute Windows Batch Command" and provided
following code:
D:\SAS\SASFoundation\9.4\sas.exe -sysin D:\spa\MasterDriverMain.sas

MasterDriverMain.sas calls multiple sas jobs & takes care of looping etc.

Thanks in advance.

Gaurav

Kanstantsin Shautsou

unread,
Apr 29, 2015, 9:32:38 AM4/29/15
to jenkin...@googlegroups.com, jenkins...@googlegroups.com
AFAIK it's currently jenkins limitation that you can't bind sequence of jobs to one slave. I hope something will change after Cloud API improvements.
All that you can do it just create a static slave in EXCLUSION mode (run only tied jobs), assign label, bind job to this label. 
Reply all
Reply to author
Forward
0 new messages