GithubHelp home page GithubHelp logo

isabella232 / teamcity.staticuiextensions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/teamcity.staticuiextensions

0.0 0.0 0.0 3.13 MB

Allows extending TeamCity pages with some extension texts

Java 95.44% JavaScript 1.13% CSS 0.56% HTML 2.87%

teamcity.staticuiextensions's Introduction

A TeamCity plugin allowing you to customize TeamCity server pages by including some custom content or serving static pages separately.

Requirements:

TeamCity 6.5 or newer

License:

Apache 2.0

Builds:

Download the plugin from teamcity.jetbrains.com

To build locally, open the project with IntelliJ IDEA, create the "plugin-zip" artifact. You may also need to set up the TeamCityDistribution path variable in IDEA to point to the unpacked .exe or .tar.gz TeamCity distribution.

Usage:

  1. To include custom content as a part of server pages:

a. Locate the plugin configuration file under:

[TeamCity Data Directory]/config/_static_ui_extensions/static-ui-extensions.xml

In the configuration file, specify the place on the page and the static file to be included. HTML, css or js resources are supported.

Here is a sample rule:

     <rule place-id="[put place id here]" 
           html-file="[include html file from this folder]"
           js-file="[include js file from this folder]"
           css-files="[include css file from this folder]">
         
         <!-- this is the rule to make page place work only for URLs that starts with -->
         <url starts="overview.html" />

         <!-- use empty path to match all pages -->
         <url starts="" />

         <!-- this is the rule to only include content if URL is equal to  -->
         <url equals="viewType.html" />

        You can add as many rules / url constraints as you like.
     </rule>

The full list of page extensions is available at: http://javadoc.jetbrains.net/teamcity/openapi/current/jetbrains/buildServer/web/openapi/PlaceId.html

The full list of the supported page places can be found in the page-places-list.txt file generated automatically on the server start.

Sample usages:

  • add google analytics to a TeamCity installation
  • add instance-specific info/announcement
  • patch TeamCity CSS/JS
  • add static html widgets, e.g. Top Investigations, Build Status etc.
  1. To include static pages served separately

Place the content you want to serve into the

[TeamCity Data Directory]/config/_static_ui_extensions/pages directory.

The pages will be available under the //app/static_content/

teamcity.staticuiextensions's People

Contributors

jonnyzzz avatar shkate avatar vladrassokhin avatar pavelsher avatar julia-alexandrova avatar msabramo avatar nskvortsov avatar yaegor avatar

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.