提供TeamCity UI插件开发的完整流程,包含后端环境搭建、前端构建及三种插件类型(Basic、Controlled、React)说明,附官方文档与资源链接,助力开发者快速上手。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
TeamCity UI Plugin development demo
This repository describes the way to develop plugins.
There are some useful resources for this repository:
- JetBrains / TeamCity Blog post about the UI Plugins
- JetBrains / TeamCity UI Plugin Development Documentation
Prerequisites
Backend Part:
To get started writing a plugin for TeamCity, set up the plugin development environment.
Download and install OpenJDK 8 (e.g. by AdoptOpenJDK). Set the JAVA_HOME environment variable on your system. Java 1.8 is required, the 32-bit versionis recommended, the 64-bit version can be used.
Download and install TeamCity on your development machine. Since you are going to use this machine to test your plugin, it is recommended that this TeamCity server is of the same version as your production server. We are using TeamCity 10 installed on Windows in our setup.
Download and install a Java IDE; we are using Intellij IDEA Community Edition, which has a built-in Maven integration.
Download and install Apache Maven. Maven 3.2.x is recommended. Set the M2_HOME environment variable. Run mvn -version to verify your setup. We are using Maven 3.2.5. in our setup.
*All those steps also described in Main Plugin Guide
Frontend Part (Controlled- and React-plugins):
We recommend you to use the Docker image to build the frontend part.
To build a plugin, use
docker-compose run build
In this case, Docker container will generate a bundle.js and put it to the directory /demoPlugins-server/src/main/resources/buildServerResources. From there you can build a plugin and add it to the TeamCity instance.
To run a plugin using the Webpack Development server mode, use
docker-compose run dev
In this case, the Webpack Server starts in the Docker container. By default, the Webpack Server starts on a port 8080. You can specify BUNDLE_DEV_URL as a http://localhost:8080 and use incrementally updated JavaScript file directly from the Webpack server.
Basic, Controlled, React plugins. What are they about?
To put it simple, using different types of plugins you make the UI handle the plugin updates differently. In case of Basic plugin - the content reloads and changes every time you navigate in the App. Using controlled version you decide, whether plugin should reload content or not. The React plugin - is the extended Controlled plugin, which allows you to reuse Components, written by JetBrains team (Sakura UI components, Ring UI).
Feedback, feature-requests and bug-reports
There is a dedicated tag in YouTrack: SakuraUI-plugin. Using the Fix Version property you can filter the tasks, which are going to be released in the next Major / Minor version of TeamCity.
Feel free to write us a line, if you have any complaints about the Plugin.
Wish you a happy coding!
Introduction
提供TeamCity UI插件开发的完整流程,包含后端环境搭建、前端构建及三种插件类型(Basic、Controlled、React)说明,附官方文档与资源链接,助力开发者快速上手。【此简介由AI生成】
Customize your domain