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

Replace the use of tf (command-line client) in *Command implementations. #46

Merged
merged 45 commits into from Aug 13, 2015

Conversation

olivierdagenais
Copy link
Member

This pull request removes the need to install the TEE CLC or Visual Studio Team Explorer on every agent, adding tf to the PATH, etc.

Testing

Integration tests were run on TFS 2012, 2013 and 2015, after removing the TEE CLC from the corresponding agents.

Oli Dagenais added 30 commits August 7, 2015 15:11
Four tests no longer applied and were deleted, and two more were added.
A few tests no longer applied, most were adapted with minimal changes
and a few new ones were added, although unfortunately the
soapextensions.Workspace class is final (could not be mocked) and the two
tests that create an instance had to become integration tests because
they [briefly] connect to TFS.
This should help make it explicit that we're potentially downloading a
whole lot of history.
We really just want to know what the latest changeset is, to compare
against the baseline.  This also is explicit that we need very few
details and that we only download the 1, latest item.
It was probably obsoleted once a workspace was no longer required for
polling.
There was only one subclass left, so it didn't make sense to keep the
extra abstraction.
It was always false except for one test.
It was only ever used in tests.
Project.getFiles() discards the results of the
GetFilesToWorkFolderCommand and thus the interface implementation
wasn't [any longer] necessary, and since we removed the last
implementation, the ParseableCommand<T> interface wasn't necessary.
This makes it so the TFVC checkout will always receive an explicit
path, reducing ambiguity.
These used to be done separately due to the use of the CLC, but now it
makes more sense to just call map() on the workspace we just created,
instead of discarding said instance and later searching for it.
@olivierdagenais
Copy link
Member Author

Odd, the CloudBees automated build did not register the success of build 168.

olivierdagenais added a commit that referenced this pull request Aug 13, 2015
Remove use of tf (command-line client) in *Command implementations.
@olivierdagenais olivierdagenais merged commit 2a48f04 into master Aug 13, 2015
@olivierdagenais olivierdagenais deleted the replace_tf_in_commands branch August 13, 2015 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant