Changes between Version 27 and Version 28 of HudsonTracPlugin


Ignore:
Timestamp:
Nov 3, 2023, 8:50:27 PM (6 months ago)
Author:
Dirk Stöcker
Comment:

Add new options, update page

Legend:

Unmodified
Added
Removed
Modified
  • HudsonTracPlugin

    v27 v28  
    88[[Image(jenkins_logo.png, align=right)]]
    99
    10 This plugin integrates [http://hudson-ci.org/ Hudson] or the actual fork [http://jenkins-ci.org/ Jenkins] build results into the Trac timeline and (optionally) provides a navbar menu to link to the Hudson instance.
     10This plugin integrates [https://jenkins-ci.org/ Jenkins] (or the discontinued Hudson) build results into the Trac timeline and (optionally) provides a navbar menu to link to the Jenkins instance.
    1111
    12 This plugin works very similar to the LuntbuildTracIntegration plugin. The build results are obtained from the Hudson remote API.
    13 
    14 '''Note''': as of version 0.4 this plugin requires Hudson 1.367 or later; if you are running an earlier version of Hudson, then you'll need to grab r7912 instead.
     12This plugin works very similar to the LuntbuildTracIntegration plugin. The build results are obtained from the Jenkins remote API.
    1513
    1614For additional integration between Trac and Jenkins see [https://wiki.jenkins-ci.org/display/JENKINS/Trac+Plugin Jenkins Trac Plugin] and [https://wiki.jenkins-ci.org/display/JENKINS/Trac+Publisher+Plugin Jenkins Trac Publisher Plugin].
    1715
    1816[[Image(hudson_plugin_screenshot.png, border=2)]]
     17
     18NOTE: For compatibility reasons the Plugin is named HudsonTracPlugin and not JenkinsTracPlugin and the config section is hudson and not jenkins.
    1919
    2020== Bugs/Feature Requests
     
    5050There are the following options you can configure in your `trac.ini` file under the section `[hudson]`. If you have the IniAdminPlugin installed they will show up on the Trac Admin page under `hudson`:
    5151 job_url::
    52    The url of the top-level hudson page if you want to display all
     52   The url of the top-level Jenkins page if you want to display all
    5353   jobs in the timeline, or a job or module url if you want only
    5454   display builds from a single job or module.
    55    Examples: `http://localhost/hudson/` (for builds from all jobs),
    56    `http://localhost/hudson/job/build_foo/` (for builds from the
     55   Examples: `http://localhost/jenkins/` (for builds from all jobs),
     56   `http://localhost/jenkins/job/build_foo/` (for builds from the
    5757   `build_foo` job only).
    58    The default is `http://localhost/hudson/`.
     58   The default is `http://localhost/jenkins/`.
     59 api_path::
     60   The path part of the API, either "api/python" or "api/json".
     61   The default is `api/json`.
     62 interfacename::
     63   The interfacename (i.e. Jenkins) to use.
     64   The default is `Jenkins`.
     65 nav_label::
     66   The label for the nav menu entry (default value will be translated).
     67   The default is `Builds`.
    5968 username::
    60    The username to use when accessing hudson; leave empty if no
     69   The username to use when accessing Jenkins; leave empty if no
    6170   authentication is needed. Default is empty.
    6271 password::
    63    The password to use when accessing hudson; leave empty if no
     72   The password to use when accessing Jenkins; leave empty if no
    6473   authentication is needed. Default is empty.
    6574 api_token::
     
    7382   Default is `false`.
    7483 main_page::
    75    The url of the hudson page to link to from the trac mainnav; if
    76    empty, no entry is created in the mainnav. Example: `/hudson/`.
    77    The default is `/hudson/`.
     84   The url of the Jenkins page to link to from the trac mainnav; if
     85   empty, no entry is created in the mainnav. Example: `/jenkins/`.
     86   The default is `/jenkins/`.
    7887 timeline_opt_label::
    79    The label to use for the above link; defaults to `Hudson Builds`.
     88   The label to use for the above link, can contain %(interfacename) to be replaced by the interface name option.
     89   The default is `%(interfacename)s Builds`.
    8090 display_in_new_tab::
    81    If set to `true` then open the above hudson page in a new tab (or
     91   If set to `true` then open the above Jenkins page in a new tab (or
    8292   window) instead of in the current tab/window. Not used if
    8393   `main_page` is not set. Default is `false`.
     
    101111   started the build, if any; `author` is the author of the first
    102112   commit, if any; `authors` is the list of authors of all commits;
    103    `culprit` is the first of what hudson thinks are the culprits that
     113   `culprit` is the first of what Jenkins thinks are the culprits that
    104114   caused the build; and `culprits` is the list of all culprits. If
    105115   this option is a list, the first non-empty value is used. Example:
     
    111121{{{#!ini
    112122[hudson]
    113 job_url = http://localhost/hudson/job/build_foo/
    114 main_page = /hudson/job/build_foo/
     123job_url = http://localhost/jenkins/job/build_foo/
     124main_page = /jenkins/job/build_foo/
    115125alternate_success_icon = true
    116126}}}
     
    119129
    120130Lastly, make sure you assign users the `BUILD_VIEW` permission for them to be able to see the builds in the timeline.
    121 
    122 == Upgrade Notes
    123 
    124 If you are upgrading from version 0.3 of this plugin (pre r9467) then make sure you're running Hudson 1.367 or later.
    125 
    126 If you are upgrading from version 0.2 of this plugin (pre r6683) then you will need to make the following changes:
    127  * The `feed_url` option has been replaced by the `job_url` option; the latter points to the top-level hudson page or to a job page, not an RSS feed anymore.
    128  * The `display_subprojects` has been renamed `display_modules`.
    129  * You must assign users the `BUILD_VIEW` permission in order for them to see the builds.
    130  * The [http://www.feedparser.org/ python-feedparser] library is no longer required.
    131131
    132132== Recent Changes