Re: Execute two jobs in Jenkins without losing session

30 views
Skip to first unread message

gaurav kodmalwar

unread,
Apr 27, 2015, 11:42:50 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

Richard Bywater

unread,
Apr 27, 2015, 11:54:19 PM4/27/15
to jenkin...@googlegroups.com
Please do not post this kind of query to the Jenkins-Dev list - this list is designed for discussion on Jenkins and Related Plugin Development not use of those things.

Richard.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CADqF3wLD4gUTZzHvnKnDDxRqcOVs_sGx6XfVSPZMDho%2BCfdepQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Kanstantsin Shautsou

unread,
Apr 29, 2015, 9:32:33 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