#8 CODE INTEGRATING PERFORCE WITH BTNET IS POSTED HERE

open
nobody
None
5
2014-08-26
2004-09-02
dagon
No

* HOW TO USE:

When submitting a Perforce changelist that you would
like to link to one or more BT.NET bugs, simply include
the bug id in the description with a preceding keyword.
For example:

- Fixed bug#4542 and added support for issue #70
- Created feature #34, according to spec
- Issue #0053 has been resolved
- Finally incorprated tweak#70

* WHAT IT DOES:

- Inspects the description of the new changelist and
extracts #id preceded by the words: issue, bug, feature
or tweak. Dupes are ignored, spaces are optional (0 or
more), case is insensitive

- Sets the referenced bugs status according to
configuration and logs the changelist id in the bug

- Updates bug history and comments according to
performed changes

- Attempts to match the perforce username and the
BT.NET username for accurate logging

* HOW TO INSTALL:

- Copy p4bt.js to the BT.NET directory

- Add a custom field via BT.NET's web interface with the
name "Perforce ID" (without the quotes) and set it to
type "int"

- Edit the Web.Config file

- Add the key PerforceSubmitStatus under
<btnetSettings> with the value of the final status to set
when a changelist is linked to a bug (5=closed in default
installation)

- Add the key ADOConnectionString under
<btnetSettings> with the value of an ADO-compatible
connection string to the BT.NET database

- Save and exit the Web.Config file

- Run the command "p4 triggers"

- In the editor that opens add the following text right
below Triggers: bugtrack //... "cscript
j:\path\to\bt.net\p4bt.js %changelist%"
The tab is intentional and should be there

- Save and exit the editor

Discussion

  • dagon

    dagon - 2004-09-02

    Perforce->BT.NET Synchronizer

     
  • Corey Trager

    Corey Trager - 2004-09-09
    • priority: 5 --> 2
    • assigned_to: nobody --> ctrager
     
  • Corey Trager

    Corey Trager - 2004-09-09
    • summary: Integration with Perforce --> CODE INTEGRATING PERFORCE WITH BTNET IS POSTED HERE
    • priority: 2 --> 5
     
  • Corey Trager

    Corey Trager - 2008-10-25
    • priority: 5 --> 2
     
  • Corey Trager

    Corey Trager - 2009-11-05
    • assigned_to: ctrager --> nobody
     
  • Corey Trager

    Corey Trager - 2009-11-05
    • priority: 2 --> 5