Kentico 9 Continuous Integration in GitLab

At home, I run an instance of GitLab Community Edition to manage my projects. One of the great features that led me to choose GitLab is the built-in continuous integration, allowing me to run CI on my projects without managing Jenkins, TeamCity, or a separate piece of software in addition to my GitLab instance. The Continuous Integration functionality added to Kentico 9 fits in well with my workflow.

One thing I want to be sure to mention is to commit your serialized files before updating the CI configuration. If you update the CI configuration file first, the CI program will run through your empty CI directory and delete all the supported objects from your Kentico instance.

Here is my .gitlab-ci.yml

build:
  script:
    - C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\MSBuild.exe WebApp.sln
    - CMS\bin\ContinuousIntegration.exe -r
    - xcopy %cd% C:\\inetpub\\wwwroot /e /y /f

Written on December 9th, 2015 by Dan Walker

Want to read more?

If you’ve enjoyed what you’ve seen so far, you might like some of my other posts. Visit the archive to see all of my past writings.

Blog Archive »
 

About the Author

Dan Walker is a programmer from Grand Rapids, MI. He works at Gordon Food Service.

More About Dan »

Get in touch