5.2 Version system configurations and other artifacts

Learning Objectives

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

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. $ cd /home/ec2-user/continuous_integration_example/software/config/jenkins
    		    
  3. Open the Jenkins system versioning file as shown below.
    $ sudo vim jenkins_versioning.sh
    			
  4. 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
  5. $ cd /home/ec2-user/continuous_integration_example/software/infrastructure/
    		    
  6. Open the Jenkins template as shown below.
    $ sudo vim jenkins.template
    			
  7. Find the line with the text below.
    git clone git@github.com:stelligent/ciexample_jenkins.git /usr/share/tomcat6/.jenkins\n
    			
  8. 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