Skip to content

๐Ÿ—๏ธ A Windows desktop gadget for TeamCity

License

Notifications You must be signed in to change notification settings

moikot/teamcity-gadget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TeamCity gadget

This is a Windows sidebar/desktop gadget for TeamCity. It receives the information about project builds from JetBrains TeamCity build management server and combine it into a compact view. Since TeamCity Gadget uses the same information channel as JetBrains TeamCity Tray Notifier there is no need in the additional plug-ins on the server side, just install the gadget, provide the URL to TeamCity server, and it is ready to go.

TeamCity Gadget uses the same settings and notification rules as JetBrains TeamCity Tray Notifier and allows to instantly evaluate the build state of the projects and the configurations you are interested in. It is always available on your sidebar if you are on Windows Vista and on your desktop in case of Windows 7. The major advantage of TeamCity Gadget is the ability to represent the project build state in a compact way by colorizing background of the project name with different colors corresponding to the build configuration state.

Downloads

The latest versions of the gadgets can be found here

Layout

gadget_layout

Configuration State Icon

The configuration state icon indicates the last build result. The icon's color is used for colorizing the part of the project's title background which corresponds to the specific configuration. All the supported configuration state icons and corresponding background colors are shown in the table below:

Icon Background Description
success background_green The last build completed successfully
error background_red The last build failed
fixing background_orange Someone took the responsibility for the broken build
fixed background_orange Someone claims that the broken build is fixed now
paused background_blue The build configuration is paused
pending background_blue The build configuration is pending
ignored background_gray The build configuration is ignored
unknown background_gray The build configuration is in unknown state

Build State Icon

Build state icon indicates the running builds state including personal builds. If there no running builds, the build state icon is omitted. The following build state icons correspond to the three combination of the running build states:

running_green All builds of the configuration are running well

running_red All builds of the configuration are failing

running_gray Some builds of the configuration are running well and some are failing

Personal Build State Icon

Personal build state icon indicates that personal build is running for the corresponding configuration. If there no running personal builds, the build state icon is omitted.

person_green All personal builds are running well

person_red All personal builds are failing

person_gray Some personal builds are running well and some are failing

Flyout

It is possible to open up a flyout with additional information for the particular build configuration by clicking on Configuration State Icon, Build State Icon or Personal Build State Icon.

gadget_flyout

The build state icon indicates the status of the build and can be followed by the custom build icon with correspondent color:

Icon Personal build icon Description
success person_green The build completed successfully
error person_red The build failed
running_green person_green The build is running well
running_red person_red The build is failing
pending person_blue The build is pending
ignored person_blue The build is canceled
unknown person_gray The build is in unknown state

Build

In order to build TeamCity Gadget, you need to have Node.js/npm and git installed.

Clone a copy of the main git repo by running:

git clone git:https://github.com/anisimovsergey/teamcity-gadget.git

Run the build script:

npm run build

The built version of TeamCity Gadget will be put in the dist/ subdirectory.

FAQ

My gadget does not show anything, what am I doing wrong?

The gadget displays everything what TeamCity server sends to its tray notifier and this information depends on the notification settings. In order to modify your notification settings you need to do the following:

  1. In the top right corner of the TeamCity server web page, click the arrow next to your username, and select My Settings&Tools from the drop-down list.
  2. Open the Notification Rules tab.
  3. Click the required notifications type: Windows Tray Notifier
  4. For the selected notifications type, specify the notification rules, which are comprised of two parts: what should be watched and notification conditions.
  5. In To Watch area select the builds you want to watch
  6. In the notification conditions should be at least two check boxes selected The build fails and The build is successful
  7. Apply your changes and click Refresh button on the gadget.