dev-resources.site
for different kinds of informations.
How to: "warm up" an environment using PowerShell and TeamCity
Published at
2/19/2020
Categories
ci
cd
powershell
teamcity
Author
seankilleen
Author
11 person written this
seankilleen
open
Prior to running some tests on a .NET web application, we wanted to send a request to the environment to “warm it up” – so that the initial start of the application pool would be completed before the tests started running.
Solution
- Select a URL that you can reasonably expect to hit as a smoke test
- Create a TeamCity build configuration
- Add a build step to the configuration of type “Powershell Script”
- Select an in-line script
- Add the following powershell:
Invoke-WebRequest -Uri http://theURLToHit -UseDefaultCredentials
Now the build step will hit the URI using the build agent’s credentials, and the command will return when the result does (with a 200 after the app pool has started up).
Happy deployments!
teamcity Article's
21 articles in total
Introducing the New TeamCity Plugin for IntelliJ IDEA
read article
Introducing the Unreal Engine Plugin for JetBrains TeamCity
read article
Make CI/CD Part of Your Development Flow With TeamCity Pipelines
read article
Configuration as Code for TeamCity Using Terraform
read article
Generate Kotlin client for a complex web API
read article
How to Set up And Run Cypress Test Cases in CI/CD TeamCity?
read article
Transition to Native Git in TeamCity Brings 10x Fetch Time Reduction to IntelliJ IDEA
read article
How to trigger TeamCity on Git push?
read article
Implementing your first Build Pipeline for Asp.Net Core using TeamCity Cloud & Docker Hub
read article
🔎 Exploring Teamcity API (with Examples!)
read article
TeamCity vs. Jenkins: Choosing The Right CI/CD Tool
read article
TeamCity build times and npm
read article
How to: "warm up" an environment using PowerShell and TeamCity
currently reading
How to: Show Jasmine test results in TeamCity
read article
How to: Call a TeamCity build from OctopusDeploy
read article
dbForge DevOps Automation Allows Setting Up the DevOps Processes in TeamCity
read article
Better Ansible Playbook Output in Teamcity
read article
Promoting Binaries and Hotfixable Deployments
read article
Deploy it right! Use tools to automate Integration and Delivery
read article
Continuous delivery for .NET (revisited)
read article
Continuous delivery for .NET (part 1)
read article
Featured ones: