Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Implementation must implement the following API operations to integrate with FlexDeploy.

Method Name

Parameter(s)Return Type

Description

populateTicket

Ticket pTicketvoid

This method should call the issue Tracking System using the ticket number(pTicket.getNumber())  and set the Description and Type

getTicketURL

Ticket pTicketString

This method should constrct the URL to access the ticket. (Ex http://<hostname>:<port>/redmine/issues/<issuenumber>.json)

addCommentToTicket

Ticket pTicket,

String pComment

void

Adding pComment to the ticket. The ticket number(pTicket.getNumber()) from Ticket object should be used to get the Ticket and add the comment.

changeTicketStatusTo

Ticket pTicket,

String pStatus

void

Change the status of the ticket to pStatus. The ticket number(pTicket.getNumber()) from Ticket object should be used to get the Ticket and change the status.

getTicketStatus

Ticket pTicketStringGet the current status of the ticket. The ticket number(pTicket.getNumber()) from Ticket object should be used to get the Ticket status.

checkConnection


void

This should invoke any status or heath check URL of the issue tracking system to ensure the system is up and running

parseTicketNumberFromChangeLogs

String pProjectName,

List<String> pMessagesToParse,

List<String> pTicketPatternList

Collection<String>

pProjectName - name of the project for which the Issue tracking system is condifured

pMessageToParse - list of string from the SCM commit logs

pTicketPatterList  - pattern configured in the project or for the issues tracking system.

Add a custom rule by project to parse the message log string using single or multiple patterns. You can also use a different pattern list. Should return a unique list of ticket numbers

...