Child pages
  • Indore 2017.2 EAP2 (build 49708) Release Notes

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

See also Indore 2017.2 EAP1 (build 49391) Release Notes

 

Table of Contents

Composite Builds

In this EAP we’re introducing a new kind of a build configuration - a composite one. The purpose of this build configuration is to aggregate results from several other builds combined by snapshot dependencies and present them in a single place.

When creating a build configuration, you can now select the build configuration type:

 
 

There are important differences between such build configurations and usual configurations with snapshot dependencies:

On the build chain view TeamCity also automatically hides all of the dependencies of the a composite build, showing a single node for such builds by default.

 Image Removed

Since this build behaves like a single build, it is possible to create a notification rule on “Build starts” or “The first build error occurs” event and get a notification when the first dependency starts or reports a build problem.To some extent, a composite build can be viewed as a build which consists of a number of parts which can be executed in parallel on different agents. All these parts will have synchronized snapshot of the source code and the results can be seen in a single place.

  Image Added

Docker Integration Improvements

...

Setting Ownership of Files Created in Checkout Directory

When a process is run under Docker in the Linux environment, the owner of the created files is root . In the first EAP build, the TeamCity Docker Wrapper set umask 0 to make sure all created files are and the files created by a step with the Docker Wrapper may be not writable by the parent build agent process.

However, if a script running on the docker sets permissions explicitly, the created file may not be writable outside the docker process.

At the same time, setting umask 0 may have unexpected and undesired effect regarding file permissions.

To fix such situations, TeamCity now runs the Rather than setting umask 0 (as it was done in the previous EAP), access to such files  is restored by the "chown -R buildAgentUserId <checkout directory>"  command  automatically run by TeamCity at the end of the build step with Docker Wrapper. This default behavior can be altered using the teamcity.docker.chown.enabled=false configuration parameter. And umask 0 trick is not used anymore by default, but can be enabled with the teamcity.docker.umask.enabled=true configuration parameter.

Docker Support Build Feature Improvements

Now when configuring this build feature, you can specify:

  • Whether during clean-up TeamCity needs  to delete images pushed to a registry during the build.   

...

The Docker Suppor build feature now provides 2 new options:

  • the ability to clean-up the images
  • automatic login to an authenticated registry before the build and log out of it after the build

Image Added

These options require a configured connection to a docker registry: on the Project Settings > Connections page you can now configure an authorized connection to docker.io (default) or a private Docker registry. More than one connection can be added to the project.

 Image Added

Clean-up of images

If you have a build configuration which publishes images, you need to remove them at some point. You can select the corresponding option and instruct TeamCity to remove the images published by a certain build when the build itself is cleaned up.It works as follows: when an image is published, TeamCity stores the information about the registry of the images published

...

by the build. On

...

cleaning up a build, all the configured

...

connections are searched for the address of this registry and the images published

...

by the build are cleaned up using the credentials specified in the found connection.

...

Automatic Login/Logout to Docker Registry

 If you need to log in to a registry requiring authentication before a build,

...

select the corresponding option and a connection to Docker configured in the project settings.

...

Configuring Connection to Docker

If you need to log in to an authenticated registry before running a build or if you wish to clean up the published images after the build - these are the options provided by the Docker support build feature (see above) - you can now configure a Docker connection in TeamCity. By default, this connection will be available in all the subprojects and build configurations of the current project.

The Project Settings > Connections page allows you to configure an authorized connection to docker.io (default) or a private Docker registry. More than one connection can be added to the project.Image Removed

Automatic logout will be performed after the build finishes.

Tracking Newly Uploaded Plugins

Now when a new plugin is uploaded to the server, it is displayed on the Administration | Plugins List page.If the uploaded plugin overwrites an existing one, a note is displayed warning the administrator that the plugin will be overwritten.The uploaded plugins are displayed, but they will be installed and enabled only after the server restart.

...

Starting from this version, any plugin can be disabled using the TeamCity UI: on the Administration | Plugins List page external plugins have a button, clicking which opens a popup with the corresponding option, ; the bundled plugins have a link which can be used to disable them. On disabling a plugin, a warning is displayed that this may impact other TeamCity components (e.g. other plugins).  During the next server restart, the disabled plugin is not loaded. If there are other plugins depending on the disabled one, they will not be loaded either. Disabled plugins are greyed out in the list.

TeamCity Auto-Update

We’re also working on the TeamCity auto-update feature, which should further enhance your upgrade experience. TeamCity server startup scripts have been reworked significantly to handle the automatic upgrade process. There is also the  Administration -> Update page which will show new versions of TeamCity where you can start the server upgrade process. One of the bonuses of developing this feature was implementation of the “Restart Server” button, which was announced in the previous EAP. We hope that this will make the upgrade of your server to the next EAP build much simpler.

Other Improvements

  • The TeamCity Audit log now contains information on including / excluding roles and adding / deleting permissions

  • Now TeamCity will automatically terminate a long running TFS app in case of inactivity ( e.g. a user just wanted to  test a TeamCity TFS connection) and when a certain run time is exceeded (e.g. to address memory leaks).
    These periods are controlled by the following configurable properties:
    - teamcity.tfs.java.long.living.process.idleTime  defaults to 30 min
    - teamcityteamcity.tfs.java.long.living.process.lifeTime is disabled by default

  • REST API now allows investigations assignment

  • Fixed issues

...