Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Branchname to IBuild #113

Open
MortenRickiRasmussen opened this issue Jun 21, 2018 · 8 comments
Open

Add Branchname to IBuild #113

MortenRickiRasmussen opened this issue Jun 21, 2018 · 8 comments

Comments

@MortenRickiRasmussen
Copy link

Bug/Feature Request

I really like this package a lot. The only way to make it better though would be to add branch name support on the IBuild object. We retrieve a lot of information from team city and compares it to github branches but that is not possible since the branch name isn't present

@borismod
Copy link
Contributor

borismod commented Jun 21, 2018 via email

@MortenRickiRasmussen
Copy link
Author

I mean to have the branch name on GetBuilds

@borismod
Copy link
Contributor

borismod commented Jun 23, 2018 via email

@MortenRickiRasmussen
Copy link
Author

I find that there already exists an RevisionList class and also a Change property. Should i use these(Or what do the represent?) or create some completely new entities.

@borismod
Copy link
Contributor

You are right, branch is a property of a revision. See the below XML that is returned from as a result to API request:

https://teamcity.jetbrains.com/app/rest/builds/1032388


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<build id="1032388" buildTypeId="bt33" number="582" status="SUCCESS" state="finished" href="/app/rest/builds/id:1032388" webUrl="https://teamcity.jetbrains.com/viewLog.html?buildId=1032388&amp;buildTypeId=bt33">
	<statusText>Success</statusText>
	<buildType id="bt33" name="JMock 2" projectName="Open-source projects / JMock 2" projectId="JMock2" href="/app/rest/buildTypes/id:bt33" webUrl="https://teamcity.jetbrains.com/viewType.html?buildTypeId=bt33"/>
	<queuedDate>20170404T233038+0000</queuedDate>
	<startDate>20170404T233117+0000</startDate>
	<finishDate>20170404T233638+0000</finishDate>
	<triggered type="vcs" details="jetbrains.git" date="20170404T233038+0000"/>
	<lastChanges count="1">
		<change id="3538358" version="d42fef10966926b332a8ef0574cfc4f2585339aa" username="olibye" date="20170404T231253+0000" href="/app/rest/changes/id:3538358" webUrl="https://teamcity.jetbrains.com/viewModification.html?modId=3538358&amp;personal=false"/>
	</lastChanges>
	<changes href="/app/rest/changes?locator=build:(id:1032388)"/>
	<revisions count="1">
		<revision version="d42fef10966926b332a8ef0574cfc4f2585339aa" vcsBranchName="refs/heads/jmock2">
			<vcs-root-instance id="3049" vcs-root-id="JMock2_HttpsGithubComJmockDevelopersJmockLibraryGit" name="https://github.com/jmock-developers/jmock-library.git" href="/app/rest/vcs-root-instances/id:3049"/>
		</revision>
	</revisions>
	<agent name="win2008-v8-i-054af88cdc466c02f" typeId="160" webUrl="https://teamcity.jetbrains.com/agentDetails.html?agentTypeId=160&amp;realAgentName=win2008-v8-i-054af88cdc466c02f"/>
	<artifacts count="0" href="/app/rest/builds/id:1032388/artifacts/children/"/>
	<relatedIssues href="/app/rest/builds/id:1032388/relatedIssues"/>
	<statistics href="/app/rest/builds/id:1032388/statistics"/>
</build>

@MortenRickiRasmussen
Copy link
Author

MortenRickiRasmussen commented Jun 27, 2018

Teamcity often includes the stripped branch name on the build itself, wouldn't it be an idea to fetch it there and also include the revisions?

@MortenRickiRasmussen
Copy link
Author

@borismod There you go #114

@sorenhansendk
Copy link

@borismod We really need this changes from Morten in the package. Can you please merge it and release a new package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants