官术网_书友最值得收藏!

Virtual platform-based deployment using Jenkins or TeamCity

If we have a cloud-based Instance such as AWS EC2 or a virtual machine such as VMware VM or Window's Hyper-V server, we can use Jenkins as a deployment tool instead of others such as GoCD or TeamCity. We can use Jenkins in many different ways, for both normal jobs and for complex pipeline-based deployment jobs.

Jenkins jobs can either be configured manually or we can use a Jenkins's descriptive scripting language (DSL) language that is one of the modified groovy forms, and normally you will find it in form of Jenkinsfile in your project. The following steps give a brief overview of how to create a new Jenkins job for deployment: 

  1. Configure Jenkins jobs using Jenkin's DSL or using pure groovy language, and call the following script from your Jenkinsfile.
  2. Write your deployment steps using a traditional scripting language such as Bash or Python.
  3. The previous two steps will do your most of the work for deployment, and your script steps will define what exactly you would like to achieve in your Jenkins job.
  4. Finally, run your Jenkins deployment jobs.

We aren't showing these steps with screenshots, as there are many examples that can easily be searched for on the internet. We have a Jenkins-based deployment example in Chapter 4, DevOps as a Service, so that you can refer to how to configure and deploy using Jenkins.

主站蜘蛛池模板: 汶上县| 博客| 宜春市| 连平县| 山东省| 阿合奇县| 徐州市| 马尔康县| 新龙县| 礼泉县| 贡嘎县| 花垣县| 仁怀市| 高阳县| 兴海县| 泸溪县| 新余市| 台湾省| 苏尼特右旗| 伽师县| 汉源县| 临高县| 镇赉县| 东方市| 封丘县| 宝兴县| 东乡| 武胜县| 平度市| 阳山县| 桃园市| 合川市| 赤城县| 陕西省| 西藏| 瑞昌市| 濮阳市| 韶关市| 东兴市| 怀柔区| 丹阳市|