Teamcity integration to create new agent and trigger the job

Team,

I need a help to create a teamcity build to create ephemeral instance of testproject docker agent everytime we trigger a build then use that agent to execute a job in parellel mode (Execution on saucelabs) which is created in test project.

Thanks