This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private Uri CreateArtefactUri(Build build) { | |
| string finalArtifactName = string.Empty; | |
| try { | |
| string artifactInfoUriString = string.Format("http://{0}/guestAuth/repository/download/{1}/{2}/teamcity-ivy.xml", this.teamCityHost, this.buildType, build.Number); | |
| using (WebClient wc = new WebClient()) { | |
| var artefactInfo = wc.DownloadString(artifactInfoUriString); | |
| XDocument artifactInfoXmlDoc = XDocument.Parse(artefactInfo); | |
| foreach (var artifactElement in artifactInfoXmlDoc.Element("ivy-module").Element("publications").Elements("artifact").Where(e => e.Attribute("ext").Value == "exe")) { | |
| var artifactName = artifactElement.Attribute("name").Value; | |
| if (Regex.IsMatch(artifactName, this.artifactNameMatch)) { |