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
EXERCISE: System Configuration Management
- 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
Open the Jenkins system versioning file as shown below.
“` $ sudo vim jenkins_versioning.sh
“`
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
Open the Jenkins template as shown below.
“` $ sudo vim jenkins.template
“`
Find the line with the text below.
“` git clone git@github.com:stelligent/ciexample_jenkins.git /usr/share/tomcat6/.jenkins\n
“`
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
“`