Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there a way to configure the Studio to not allow building jobs with "Production" context at all when running the studio on TEST server and vice versa, preventing the Studio from allowing "Test" context when running Studio on production server?
We never build production jobs on our test server, nor test jobs on prod server, so removing these options alltogether would remove the the risk of accidentally leaving the wrong setting to the list. The environment would dictate which setting is allowed for the environment the developer is in.
Mockup illustaration below.
WHEN RUNNING STUDIO ON TEST SERVER,
"Production" context is not an option:
WHEN RUNNING STUDIO ON PRODUCTION SERVER,
"Test" context is not an option:
Hi
It's impossible to hide some specified context when build the job, however, you can still modify the context from executable file after you build the job.
Regards
Shong
By default the ApplicationContext is loaded using the GenericXmlContextLoader which loads a context from XML Spring configuration files. You can then access beans from the ApplicationContext by annotating fieldour test class .
I'm sorry, I don't have the Java experience to understand your tip. Even if I could "access beans from the ApplicationContext by annotating fieldour test class ", how would that take me closer to being able to restrict an user from building a job with Production context when they're running Studio on a Test/Dev machine?