Ejemplo n.º 1
0
        internal LocalTc(IBuildParameters buildParameters = null, ITeamCityWriterFactory teamCityWriterFactory = null, params object[] overrides)
        {
            var bootstrapper = new Bootstrapper(overrides);

            m_BuildParameters     = buildParameters ?? bootstrapper.Get <IBuildParameters>();
            teamCityWriterFactory = teamCityWriterFactory ?? bootstrapper.Get <ITeamCityWriterFactory>();
            m_TeamCityWriter      = teamCityWriterFactory.CreateTeamCityWriter();

            string changedFilesPath;

            if (m_BuildParameters.TryGetBuildParameter("build.changedFiles.file", out changedFilesPath))
            {
                m_ChangedFiles = bootstrapper.Get <IChangedFilesParser>().ParseChangedFiles(changedFilesPath);
            }
            else
            {
                m_ChangedFiles = new List <IChangedFile>();
            }
        }
Ejemplo n.º 2
0
 public bool TryGetBuildParameter(string parameterName, out string parameterValue)
 {
     return(m_BuildParameters.TryGetBuildParameter(parameterName, out parameterValue));
 }