Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenkinsci/branch-api-plugin
https://github.com/jenkinsci/branch-api-plugin
jenkins-api-plugin
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jenkinsci/branch-api-plugin
- Owner: jenkinsci
- Created: 2013-09-16T20:39:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T22:39:00.000Z (15 days ago)
- Last Synced: 2024-10-30T00:39:27.130Z (15 days ago)
- Topics: jenkins-api-plugin
- Language: Java
- Homepage: https://plugins.jenkins.io/branch-api/
- Size: 2.62 MB
- Stars: 36
- Watchers: 103
- Forks: 143
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Jenkins Branch API Plugin
===
[![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/branch-api)](https://plugins.jenkins.io/branch-api)
[![Changelog](https://img.shields.io/github/v/tag/jenkinsci/branch-api-plugin?label=changelog)](https://github.com/jenkinsci/branch-api-plugin/blob/master/CHANGELOG.md)
[![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/branch-api?color=blue)](https://plugins.jenkins.io/branch-api)This plugin provides an API for multiple branch based projects.
The following concepts are provided:
- Multibranch projects: projects consisting in a group of several
projects, one for each defined branch.
- Organizational folders: a folder-like collection of Multibranch
projects, one per repository.
- Branch properties: add additional information linked to the branch,
which can then be used to take decisions. Some properties are
provided:
- Do not trigger builds for branch.
- Do not trigger builds for organizational folder.
- Override triggering behaviour for multibranch project or
organizational folder.
- Untrusted author.
- Limit builds for a branch to a certain rate.
- Discard old builds for branch.For generic information about how to use the Branch API plugin, please see [the user guide](docs/user.adoc)
If you are writing a plugin that implements this API, please see [the implementation guide](docs/implementation.adoc)
# BuildTo build the plugin locally:
mvn clean verify
# Test local instance
To test in a local Jenkins instance
mvn hpi:run
# Debug hooks for events
If you have to try and diagnose issues with events or indexing, the
following information may be of assistance:Jobs triggered by SCM Events try to capture their origin.
The origin is available as a tool-tip on the build cause:
![](docs/Screen_Shot_2017-03-16_at_14.11.57.png)This can be very helpful to quickly identify where events that trigger
builds are coming from.More detailed event processing information is available from the event
logs.
By default, the CloudBees Folders plugin will only retain the logs of
the last scan / index. If you are having issues with scanning /
indexing, it can help to turn on the retention with the system
property `com.cloudbees.hudson.plugins.folder.computed.FolderComputation.BACKUP_LOG_COUNT`
(note that you can write directly to that field using the System Groovy
Console, so you can change the value on a running system without a
restart)The Multi-branch projects will log the initial arrival of events and any
routing decisions in
the `$JENKINS_HOME/logs/jenkins.branch.MultiBranchProject.log` file
(which will be rolled every 32kB, limit of 5 files)- Once an event has been routed to a specific Multi-branch project,
the responsibility for logging the event will belong with that
Multi-branch project and will be stored in the
`$JENKINS_HOME/jobs/$PATH_TO_PROJECT/indexing/events.log` (which
will be rolled every 150kB, limit of `BACKUP_LOG_COUNT` files)The Organization folder projects will log the initial arrival of events
and any routing decisions in
the `$JENKINS_HOME/logs/jenkins.branch.OrganizationFolder.log`
file (which will be rolled every 32kB, limit of 5 files)- Once an event has been routed to a specific Organization folder
project, the responsibility for logging the event will belong with
that Organization folder project and will be stored in the
`$JENKINS_HOME/jobs/$PATH_TO_PROJECT/computation/events.log` (which
will be rolled every 150kB, limit of `BACKUP_LOG_COUNT` files)# Release notes
For version 2.5.5 and beyond, see the [GitHub releases](https://github.com/jenkinsci/branch-api-plugin/releases) list.
Otherwise see the [archive](https://github.com/jenkinsci/branch-api-plugin/blob/6dc6bef373070a298e1f9218d2a89c5c3623ebfc/CHANGELOG.md).