Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to exclude vcs modification resolution whilst building payload #149

Closed
netwolfuk opened this issue Oct 31, 2019 · 2 comments
Closed

Comments

@netwolfuk
Copy link
Member

See #148

@netwolfuk
Copy link
Member Author

PR raised: #150

@netwolfuk
Copy link
Member Author

Add ability to limit or exclude vcs file list whilst building payload

This change includes the following new features:

  1. The list of changed VCS files can be disabled.
  2. The list of changed VCS files can be disabled if it is too large. The
    default value is 100 files across all changes in a build.

NOTE: In the cases where the change list is disabled or too large (1 & 2
above), the payload will contain a null files list.
This is preferable to returning an empty list, because the empty list
implies no actual changed files were included in the change.
A null change list will typically be serialised to nothing in JSON or
XML, so the json array or xml element will be missing from the payload.
If your endpoint is expecting these, then it should fail in this
scenario or handle the missing field gracefully.

Enables control over whether or not to include the list of files in a
change.
This can be enabled in the three ways below, in order of
priority.

  1. Add a 'param' named 'includeChangeFileList' to a webhook config by
    editing plugin-settings.xml
  2. Add a build parameter to a buildType or project called
    'webhook.includeChangeFileList'
  3. Define a property in teamcity's internal properties file called
    'webhook.includeChangeFileList'.

The value must be a string representation of a boolean. eg, "true" or
anything else will evaluate to false.

Enables control over the maximum number of files changed in a build
before the changed file list is set to null
. This can be controlled in the
three ways below, in order of priority.

  1. Add a 'param' named 'maxChangeFileListSize' to a webhook config by
    editing plugin-settings.xml
  2. Add a build parameter to a buildType or project called
    'webhook.maxChangeFileListSize'
  3. Define a property in teamcity's internal properties file called
    'webhook.maxChangeFileListSize'

If the total number of files is greater than maxChangeFileListSize,
then the change list will be null. See note above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant