![]() ![]() The script makes use of MSXML.HTTP object to invoke the JIRA web service. This ofcourse requires that the xmlrpc plugin be enabled on JIRA server. The integration with JIRA is done via web service using SOAP messages. ToString = "" & m_strValue & "" End Function End Class Set m_colParams = Nothing End Sub End Class Class wsParameterĮnd Property Public Property Let Key(strKey)Įnd Property Public Property Let Value(strVal) Set m_colParams = CreateObject( "Scripting.Dictionary") Set param = Nothing End Sub Public Function Item(nKey)Įnd Function Public Function ExistsXKey(pKey)ĮxistsXKeyword = True Exit For End If Next End Function Public Sub Remove(nKey)Įnd Function Private Sub Class_Initialize() Set m_colParams = Nothing Set m_colParams = CreateObject( "Scripting.Dictionary") Set wshShell = WScript.CreateObject( "WScript.Shell") Public Const vbSpace = " " Public Const SVNLOOK_PATH = "" Public Const JIRA_USER = "" Public Const JIRA_PASS = "" Public Const JIRA_HOST = "" Public Const JIRA_ENDPOINT = " Private retVal Khandekar '* PURPOSE : Script to check whether the commit is accompanied by a commit '* message and that the message contains the valid open JIRA issue '* id. Khandekar '* CREATED ON : Ap16:02 '* COPYRIGHT : © 2008, Prasad P. The Issue must have been assigned to the committer. ![]() The Issue id specified must be a valid issue in Issue System(JIRA).Commit message must begin with an Issue Id followed by a space and hyphen.The Hook Script The hook script described here enforces following rules. A return code of zero allows the transaction to complete successfully. The pre-commit can fail the transaction by printing an informative message to standard error and returning non-zero value. Subversion passes this hook two parameters: Typically, this hook is used to protect against commits that are disallowed due to content or location (for example, your organisation might require that all commits to a certain branch include a ticket number from the bug tracker, or that the incoming log message is non-empty). The pre-commit Hook The pre-commit hook gives you an opportunity to catch the transaction just before it becomes a revision. Windows uses file extensions to determine whether or not a program is executable, so you would need to supply a program whose basename is the name of the hook, and whose extension is one of the special extensions recognized by Windows for executable programs, such as. ![]()
0 Comments
Leave a Reply. |