Git Product home page Git Product logo

teamcity-vscode-extension's Introduction

TeamCity Extension for Visual Studio Code Obsolete

This plugin is deprecated and no longer supported.

This extension allows you to connect to a TeamCity Server, receive notification messages from TeamCity and run personal builds on the TeamCity server without leaving Visual Studio Code.

Prerequisites

Team Foundation Version Control

Once you have a local TFVC workspace available, you must configure the TFVC support in Visual Studio Code. Details (including demo videos) are available in the TFVC documentation.

Because the extension uses TF command line client, the client should be logged on the server for Team Foundation version control. Execute tf workfold command in the project directory.

Installation

First, you will need to install Visual Studio Code 1.23.0 or later.

To install the extension with the latest version of Visual Studio Code (version 1.25.0 is the latest as of this writing), download the last pre-release version of the TeamCity extension from the corresponding page, bring up the Visual Studio Code Command Palette (F1), type Install from VSIX and choose the teamcity-vscode-extension-***.vsix file in the opened dialoge box. Restart Visual Studio Code.

Alternatively, you can also install using the VS Code --install-extension command line switch providing the path to the .vsix:

code --install-extension myextension.vsix

Authentication

When you are connecting to the TeamCity Server, you will only need your TeamCity server credentials (domain name, account name and password).

To sign in to your account, run the teamcity signin command. You will be prompted to enter your credentials. When you do, and the authorization on the TeamCity server is successful, your will be prompted to save credentials securely on your local machine.

Credentials Storage

On Windows, your credentials wil be stored by Windows Credential Manager. On macOS, your credentials will be stored in the Keychain. On Linux, your credentials will be stored in a file on your local file system in a subdirectory of your home folder. That file is created only with RW rights for the user running Visual Studio Code.

Commands

The extension provides several commands for interacting with the TeamCity API. In the Command Palette (F1), type TeamCity and choose a command.

  • TeamCity: Sign in โ€“ This command is used for signing in to a TeamCity server. When required credentials are provided, they are sent to TeamCity server to validate them and get internal user information. If validation is passed, it will be stored securely if possible on user the computer and used to connect to the TeamCity server.

  • TeamCity: Sign out โ€“ This command is used for signing out of a TeamCity server.

TeamCity View Container

The extension uses custom tree data providers under the TeamCity view container to provide most of features.

Tree Data Provider

Logging

You may need to enable file logging to troubleshoot an issue. There are four levels of logging (error, warn, info, and debug). Since logging is disabled by default, you can add an entry like the one below to the Visual Studio Code settings and restart VSCode. Once you are finished logging, either remove the setting or set it to an empty string and restart VSCode.

"teamcity.logging.level": "debug"

The log file will be placed at the root of your workspace and will be named teamcity-extension.log.

Debugging

To start debugging the extension, do the following:

  1. Clone the repository from the GitHub repository.
  2. Execute the npm install command from the root of the project.
  3. Open the project via the Visual Studio Code editor
  4. Debug -> Start Debugging

Packaging

To package a custom version of the extension, please refer to the VSCode documentation.

Support

Support for this extension is provided in GitHub Issue Tracker. You can submit a bug report, a feature request or participate in discussions.

License

This extension is licensed under the MIT License.

teamcity-vscode-extension's People

Contributors

burnasheva avatar dependabot[bot] avatar dmitry-treskunov avatar dtretyakov avatar hypnosphi avatar jeffb4 avatar julia-alexandrova avatar rugpanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teamcity-vscode-extension's Issues

Typo in welcome page

Under the command section there is the following typo:
"The extension provides several commands for interacting with Team City API. In the Command Palette (F1), type TeamTity and choose a command."

Support Without TeamFoundation Server

My team uses TeamCity to run builds. Our code is committed via git, then we manually kick off builds when we are ready. That will eventually become more automated, but for now thats how we do it.

I've successfully installed the plugin and logged into my TC instance. However nothin shows up in the list. I expected to at least see the various Projects and their build statuses.

If that support isn't built in yet, then thats my feature request. If it is and I'm just missing something please let me know. Thanks in advance. Excited to see VS Code support in general.

Unknown XML-RPC tag 'TITLE'

When attempting to log in, I am receiving an error message
(TeamCity) Unknown XML-RPC tag 'TITLE'

The authentication doesn't work and every time I attempt to add my credentials I get this same message.

Installed version: teamcity-vscode-extension-1.0.0-beta.6.vsix
MacOS: 10.13.5 (High Sierra)
VSCode: 1.24.0

Where is "tc.vsix"?

From the README.md

Type "Install from VSIX" and choose the tc.vsix file in the opened dialoge box

Where does one get tc.vsix? Clearly I'm missing something obvious here.

Roadmap for Preview version

Following tasks should be done for Preview Version of TeamCity extension for VS Code.

Integration with existing VS Code SCM Providers

  • Get list of modified files from Git Provider #2
  • Get list of modified files from TFVC Provider #3
  • Get repository info from Git Provider #4
  • Get repository info from TFVC Provider #5
  • Commit modified files on behalf of SCM Provider #6

Integration with TeamCity APIs

  • Authentication via login/password #7
  • Find suitable build configuration #8
  • Queue personal build with modified files #9
  • Subscribe on IDE notifications #10

Dialogs in TeamCity VS Code Extension

Git support

Important: The preferred way of running personal builds with Git on TeamCity is to use Branch Remote Run Trigger which creates builds on branches in TeamCity.

Please refer to the wiki page for more information about Git support.

support Github authentication

Does this plugin support github authentication to teamcity?
(my company uses teamcity, but I'm using SSO via github, I can't seem to setup the plugin)

SVN Support?

Asking if this supports SVN, and if not, are there any plans for it?

Https Support

Providing a https url to sign in results in (TeamCity) socket hang up. Looks like default is port 80 and this can't be overriden.

Implement user-friendly behavior in case of multiroot Remote run

Currently when user successfully executes a Remote Run command with multiple SCM providers,
the extension executes a post commit logic for each SCM provider.
Also we should think of messages for checkininfo for each commit.

From my point of view it's not correct.

The plugin doesn't detect changed files: "Please, choose at least one changed resource"

Hello,

I have installed the recent version (0.0.3) of the plugin into VS Code 1.19.2.
I have TeamCity Enterprise 2017.1.4.
I can successfully connect from the plugin to my TC server.
Both my local working directory (opened in VSCode) and the TeamCity build project use the same (remote) Git repository.
I have admin rights on the TC's build project.

Unfortunately the uncommitted changes, which I make in VSCode, don't appear in the TeamCity view of VSCode (but I see them in the VSCode "Source Control" tab).
The "TEAMCITY: Refresh files..." doesn't make any change.
As a result I'm getting the error Please, choose at least one changed resource and I can't send my changes for the remote build.

The only message from TeamCity in the Output is You are successfully logged in. Welcome to the TeamCity extension!.

How can I make the plugin to detect changes in my local workspace?

Here is my plugin debug log:
teamcity-extension.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.