![]() You can find more details about our API in the Endtest API chapter. You can also use the value of the hash variable to generate the link to the Results page for that test execution: results= hash= " $hash" Test.sh #!/bin/bash hash=$(curl -X GET -header "Accept: */*" " $ - The URLs for the screenshots and the video recording of the test execution. This can be done by creating a test.sh file and executing it inside your TeamCity builds. In the Custom script text area, add your platform-specific script which calls the Endtest API request for starting a test execution and fetches the results.Select Custom Script from the Run dropdown.Select Command Line from the Runner type dropdown. Local TeamCity server and agents The problem is the following: run build with webhooks and not with polling.Go to your project in TeamCity and select Edit Configuration Settings > Build Steps > Add Build Step.You can control more than one build configuration in TeamCity with commands! Read further on how to define the TeamCity build configuration in the commit message.You can use our Endtest API in order to integrate Endtest with JetBrains TeamCity. Read further on how to define the TeamCity build configuration in the commit message. You can control more than one build configuration in TeamCity with commands! Replace the actual value of your TeamCity build configuration ID, located at your build settings in TeamCity. (Watch the tutorial video above if unsure how to create an access token!)Īdd a header with the name "Content-Type" and with the value "application/xml".įor Webhook body, choose Custom data and enter the following: Replace the placeholder with the actual TeamCity Access Token. Essentially you need to register TeamCity as an OAuth application in GitHub for the appropriate GitHub project/organization. If you are using a modern version of TeamCity which supports CSRF protection, check the documentation for further instructions.Īdd a header with the name "Authorization" and with the value of "Bearer ". Replace the placeholders with your actual TeamCity base URL. Select the Send web request automation action! This gives them a seamless way to change the command to something else, and control other CI/CD actions without switching context.Ĭreate a new Automation for Jira rule and choose the Genius Commit created trigger from the DevOps category!Ĭhoose the command "Build from the list of commands! They can control if a TeamCity build should trigger after every successful push of code changes.īetter DevOps Automation introduces so-called Genius Commits, which are commits containing custom commands in the commit message. This Jira automation rule for TeamCity will trigger on Git push if your developers used the command in the Git commit message. If you are new to Better DevOps Automation, don't skip the introductory blog on this DevOps automation solution for Jira Data Center (and Server). You can freely combine the DevOps automation triggers by Better DevOps Automation with the built-in Automation for Jira actions, and implement a wide range of custom DevOps workflows. The below DevOps automation solution is based on Automation for Jira (Data Center and Server) and Better DevOps Automation for Jira to automate a TeamCity build.īetter DevOps Automation for Jira extends Automation for Jira with DevOps triggers that you can use in any no-code, low-code automation rule in Jira. We will walk through how you can automatically trigger a TeamCity build on Git push by using a specific command in your Git commit message.ĭo you prefer a tutorial video? Watch this quick YouTube video on how to create an automation rule for triggering a TeamCity build:Įxtending Automation for Jira with DevOps triggers investments in their build pipelines using battle tested technologies such as Jenkins, TeamCity, and CircleCI. Now we are looking at a Jira automation for TeamCity. Previously in this series of Jira DevOps automation tutorials, we discussed how to trigger a Jenkins build and how to trigger a Bamboo build on successful Git commit.
0 Comments
Leave a Reply. |