Now that we have successfully configured our Jenkins and applied user level security settings on it, it’s time Jenkins serves it purpose. So we will now schedule and run a demo job using Jenkins.
Once you login into Jenkins, you will see this right out of the blue, asking you to create your first job. We would click it so that is takes us to next page.
From the various options, select “Freestyle Project” since we are creating a demo job.
You need to provide a suitable name for this. I name it rahulj1
Enter a suitable description for this job. Next come down to the section that says Source Code Management. This allows us to use version control systems like CVS and Subversion. Don’t click anything in here. Just keep the default options. Go to the section that says Build
Select Execute Shell from the drop down options.
Give the specific shell command that you want to execute. For this example, I’ll use the
Click Save. Your first job is ready to be run. The job opens up. You’ll see a Build Now option on the left. Click on that.
The job will start executing. Let the job run. Once it is completed, you will see the Build History coming up, with the job run details and RSS feeds.
Click on the circular icon showing for the job. It will show you the Console output for this job.
In the next tutorial we will learn how we would schedule a job to run at a specific time.