Changes between Version 27 and Version 28 of HudsonTracPlugin
- Timestamp:
- Nov 3, 2023, 8:50:27 PM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HudsonTracPlugin
v27 v28 8 8 [[Image(jenkins_logo.png, align=right)]] 9 9 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 Hudsoninstance.10 This 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. 11 11 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. 12 This plugin works very similar to the LuntbuildTracIntegration plugin. The build results are obtained from the Jenkins remote API. 15 13 16 14 For 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]. 17 15 18 16 [[Image(hudson_plugin_screenshot.png, border=2)]] 17 18 NOTE: For compatibility reasons the Plugin is named HudsonTracPlugin and not JenkinsTracPlugin and the config section is hudson and not jenkins. 19 19 20 20 == Bugs/Feature Requests … … 50 50 There 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`: 51 51 job_url:: 52 The url of the top-level hudsonpage if you want to display all52 The url of the top-level Jenkins page if you want to display all 53 53 jobs in the timeline, or a job or module url if you want only 54 54 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 the55 Examples: `http://localhost/jenkins/` (for builds from all jobs), 56 `http://localhost/jenkins/job/build_foo/` (for builds from the 57 57 `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`. 59 68 username:: 60 The username to use when accessing hudson; leave empty if no69 The username to use when accessing Jenkins; leave empty if no 61 70 authentication is needed. Default is empty. 62 71 password:: 63 The password to use when accessing hudson; leave empty if no72 The password to use when accessing Jenkins; leave empty if no 64 73 authentication is needed. Default is empty. 65 74 api_token:: … … 73 82 Default is `false`. 74 83 main_page:: 75 The url of the hudsonpage to link to from the trac mainnav; if76 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/`. 78 87 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`. 80 90 display_in_new_tab:: 81 If set to `true` then open the above hudsonpage in a new tab (or91 If set to `true` then open the above Jenkins page in a new tab (or 82 92 window) instead of in the current tab/window. Not used if 83 93 `main_page` is not set. Default is `false`. … … 101 111 started the build, if any; `author` is the author of the first 102 112 commit, if any; `authors` is the list of authors of all commits; 103 `culprit` is the first of what hudsonthinks are the culprits that113 `culprit` is the first of what Jenkins thinks are the culprits that 104 114 caused the build; and `culprits` is the list of all culprits. If 105 115 this option is a list, the first non-empty value is used. Example: … … 111 121 {{{#!ini 112 122 [hudson] 113 job_url = http://localhost/ hudson/job/build_foo/114 main_page = / hudson/job/build_foo/123 job_url = http://localhost/jenkins/job/build_foo/ 124 main_page = /jenkins/job/build_foo/ 115 125 alternate_success_icon = true 116 126 }}} … … 119 129 120 130 Lastly, make sure you assign users the `BUILD_VIEW` permission for them to be able to see the builds in the timeline. 121 122 == Upgrade Notes123 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.131 131 132 132 == Recent Changes