In this lab we will be looking at creating a build in jenkins. On a prepped server we will create a simple shell build in a folder so that we get comfortable with the interface and navigating into the freestyle build type.
Once we have a build run we will check out put and verify that our build is progressing as intended.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a folder named Test
In the dashboard click on create item, from there enter "Test" at the top of the page and then click "folder" and then "ok"
- Create a user test job that saves it output in a file “user_test.txt”
in the folder you created, go to new item on the left, then name the item user_test and then
click "freestyle build" and then "ok"
In the job configuration page in the build step,
click execute shell,
then in the text box type
uname -a && whoami > user_test.txt
then click save.Then click build on the left,
Then click workspace and locate the file,
view the contets of the file by clicking view on the page.
This should result in the username ‘jenkins’