Add appropriate dependency to jenkins dynamic