OLMIS-4800, load current branch name into variableThis is needed for the agent-less deploy to stage branch. Since declaring an agent implies checkout scm, we need this since that stage doesn't have an agent and therefore doesn't have the git checkout.
OLMIS-4907: send request after response dto is createdThe request body does not always contain all information (like id field).That is way we firstly need to create a response body and then use it tocreate a correct request body to the external service.