PowerShell , Team City & GitHub
Hi Experts,
Am currently working on a data integration project. Am primarily a SQL Developer and current project requires to automate some deployments. Am a bit newbie to Teamcity & a bit comfortable with Powershell.
Integration Flow
1. User Commits GitHub --> Trigger the Powershell --> Powershell performs the deployment on the Database.
Now could you please share if its possible to pass down the file committed details to Powershell and I can use those details to execute the committed scripts on databases.
Thanks
Please sign in to leave a comment.
Hi,
this should be rather easy, although it would depend a bit on what you exactly mean with "the file committed details".
If you set up a build configuration pointing to the GitHub VCS repository, and make sure there is a VCS Trigger for it, then the files in the repository will automatically be downloaded to the build agent, the process where the build is running, and you will be able to set up build steps, including a powershell script or whatever you need.
If oyu provide details on what the "file committed details" you wrote means, we might be able to be a bit more accurate.