Enter the following regular expression as a parameter pattern: (?.*).Login to Jira as admin, go to Commits → Genius Commands.Then, execute these additional steps for the parameter: In this example, the parameter "buildConfigId" will be parsed from the commit message and passed to the build.įor this, first implement the "parameterless" automation using the previous guide. It is a more flexible variant of the previous automation that allows choosing the build configuration. Check if the command was included in the commit message?.Check if the command is defined in the Genius Commands screen? (It's a default command.).Name your automation rule intuitively, and click Turn it on.Ĭreate a commit with this commit message:įix the FOO-1 bug.It will start a build if the configuration is valid. Replace the actual value of your build configuration ID, located at your build settings in TeamCity. Add a header with the name "Content-Type" and with the value "application/xml".(For older TeamCity versions, add a header with the name "Origin" and with the value of your TeamCity base URL.) If you executed step 9, add a header with the name "X-TC-CSRF-Token" and with the value of. (If your TeamCity version does not support Access Tokens, use basic authentication instead:Īdd a header with the name "Authorization" and with the value of Basic where credentials is the Base64 encoding of your TeamCity username and password joined by a single colon. Replace the placeholder with the actual Access Token created in step 2. Tip: if the URL contains smart values (variables), replace those with actual values (constants) for the time of the validation, then revert to the smart values after the configuration was successfully validated. Validate your settings in the Validate your webhook configuration section below. Check the Delay execution of subsequent rule actions until we've received a response for this webhook checkbox.Replace the placeholder with the actual Access Token created at step 2. Replace the placeholder with your actual TeamCity base URL.Īdd a header with the name "Authorization" and with the value of "Bearer ". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |