Balaji Vajjala's Blog

A DevOps Blog from Trenches

05.02

  • 5.2 Version system configurations and other artifacts
    • Learning Objectives
    • Version Configurations
    • EXERCISE: System Configuration Management

5.2 Version system configurations and other artifacts

Learning Objectives

By the end of this lesson you will be able to:

  • Version the Jenkins configuration.

Version Configurations

Slide1

EXERCISE: System Configuration Management

  1. Open the Jenkins configuration directory from the AWSCLI instance. You can also find the file by visiting https://raw.github.com/stelligent/continuous_integration_example/master/software/config/jenkins/jenkins_versioning.sh
  2. Open the Jenkins system versioning file as shown below.

    “` $ sudo vim jenkins_versioning.sh

    “`

  3. Open the Jenkins template file from your AWSCLI instance. You can also find the file by visiting https://github.com/stelligent/continuous_integration_example/blob/master/software/infrastructure/jenkins.template

  4. Open the Jenkins template as shown below.

    “` $ sudo vim jenkins.template

    “`

  5. Find the line with the text below.

    “` git clone git@github.com:stelligent/ciexample_jenkins.git /usr/share/tomcat6/.jenkins\n

    “`

  6. Modify stelligent to your student id (change 29 to your student id). Save the file and commit it to Git. Then, run the job that creates the Jenkins template (or run this from CloudFormation). Be sure to use the modified version of the jenkins.template file.

    “` git clone git@github.com:student29/ciexample_jenkins.git /usr/share/tomcat6/.jenkins\n

    “`