Changing code used for ci/cd pipeline in order to use templates and inherit variables from CI CD repository