This is not unique to the grail or even Jenkins, but here's what you can do.
Set up a functional test server where you can deploy your applications. Create one Jenkins job to query the project Afor SCM changes and server deployment A, and one job to query the project Bfor SCM changes and server deployment B.
C, . , , , , . , - . A B dowstream C .
, .
, B -, LDAP - . , , ? . B , , B.