1
00:00:00,002 --> 00:00:05,006
(upbeat music)

2
00:00:05,006 --> 00:00:06,005
- [Instructor] In this challenge

3
00:00:06,005 --> 00:00:10,000
you were to print the number of nutrients in database.

4
00:00:10,000 --> 00:00:13,001
So for that I have added this one more statement,

5
00:00:13,001 --> 00:00:16,006
printing the size of the nutrient map.

6
00:00:16,006 --> 00:00:21,003
And to test it out, I go back to my local host

7
00:00:21,003 --> 00:00:23,008
and refresh,

8
00:00:23,008 --> 00:00:26,009
you can see, it is printing the number of nutrients.

9
00:00:26,009 --> 00:00:29,007
Now I need to push this change to Git,

10
00:00:29,007 --> 00:00:32,001
so for that I go to Git staging,

11
00:00:32,001 --> 00:00:34,008
you can see it is showing up as unstaged,

12
00:00:34,008 --> 00:00:36,004
so I stage it,

13
00:00:36,004 --> 00:00:40,002
you can also see that I'm adding it to a branch 02-09,

14
00:00:40,002 --> 00:00:42,008
just so that I can keep it separate,

15
00:00:42,008 --> 00:00:48,004
I will add the comment 02-09e,

16
00:00:48,004 --> 00:00:51,005
you'll see it changed.

17
00:00:51,005 --> 00:00:57,009
Then I commit and push, next, and it is done.

18
00:00:57,009 --> 00:01:01,007
Now Jenkins is going to pull the code from master,

19
00:01:01,007 --> 00:01:05,004
which means the branch needs to be merged to the master,

20
00:01:05,004 --> 00:01:07,009
so that Jenkins can pull the changes.

21
00:01:07,009 --> 00:01:11,007
For that I'll go to my command line

22
00:01:11,007 --> 00:01:17,000
and I am in my Git folder, so I'll say Git,

23
00:01:17,000 --> 00:01:24,005
checkout master, Git pull origin master.

24
00:01:24,005 --> 00:01:31,006
Then I'll say Git merge 02-09e

25
00:01:31,006 --> 00:01:37,003
and then Git push origin master.

26
00:01:37,003 --> 00:01:40,009
This will merge the changes to master.

27
00:01:40,009 --> 00:01:44,006
Now I go to Jenkins, I'm in Jenkins now,

28
00:01:44,006 --> 00:01:51,006
and all I need to do is build my project one more time.

29
00:01:51,006 --> 00:01:54,005
So we are good with a build here,

30
00:01:54,005 --> 00:01:59,004
I go back to my URL and just refresh

31
00:01:59,004 --> 00:02:00,008
and you can see the changes

32
00:02:00,008 --> 00:02:04,000
are showing up on the production as well.

