Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make BR run only for interactive session

SoniaShridhar13
Giga Guru

want to make bR run only for interactive session....Please help how to do it??

2 REPLIES 2

MrMuhammad
Giga Sage

Hi Sona,

In the BR condition field please use below code

gs.getSession().isInteractive();

Above code will ensure interactive session only.

find_real_file.png

Regards,

Muhammad

Regards,
Muhammad

MrMuhammad
Giga Sage

You can alternatively try the below as well.

gs.isInteractive();

Regards,
Muhammad