Exercise
- Create new folder name: “GITrepo-ex3-yourname”
- Initiate git
- Create 2 files and afterwards push them to public repo in GitHub a. File 1: the Hello.java file we used in class b. File 2 name: yourname.java the code should print your name several times
- Create 4 Jenkins job as follows: a. First job - compile the Hello.java code b. Second job – run the Hello binary c. Third job – compile your-name.java d. Fourth job – run your-name binary e. Connect each job to GITHUB f. Configure job1 and job3 to poll GITHUB every minute for changes
- Concatenate the 4 jobs as we learnt in the previous lesson
- Update the Hello.java code to include a different print (not hello world…)
- Check that the 1-4 Jenkins jobs were triggered and the Hello.java and yourname.java were compiled
- Update the yourname.java code to include a different print
- Check that the 1-4 Jenkins jobs were triggered