Jenkins Tutorial – How to Deploy a Test Server with Docker + Linux (Full Course)



Learn about Jenkins by building a CI/CD pipeline for a web application. Jenkins is an open source automation server which makes it easier to build, test, and deploy software. In this course, you will learn how to build a full dev-ops pipeline using Jenkins, Linode Servers, and other tools.

🔗 Course Readme: https://github.com/gwenf/jenkins-fcc-readme
🔗 Sign up for Linode with a $100 credit: https://www.linode.com/students

✏️ Gwendolyn Faraday developed this course. Check out her channel: https://www.youtube.com/c/FaradayAcademy

🏗 Linode provided a grant that made this course possible.

⭐️ Contents ⭐️
⌨️ (00:00:00) Video Intro
⌨️ (00:01:33) Course Overview
⌨️ (00:02:36) What is Jenkins?
⌨️ (00:08:47) Terms & Definitions
⌨️ (00:11:58) Project Architecture
⌨️ (00:13:28) Linode Intro
⌨️ (00:20:18) Setting Up Jenkins
⌨️ (00:24:11) Tour of Jenkins Interface
⌨️ (00:30:33) Installing Plugins
⌨️ (00:33:39) Blue Ocean
⌨️ (00:34:55) Creating a Pipeline
⌨️ (00:42:37) Installing Git
⌨️ (00:45:15) Jenkinsfile
⌨️ (00:46:27) Updating a Pipeline
⌨️ (00:52:05) Jenkins with nom
⌨️ (00:56:36) Docker & Dockerhub
⌨️ (01:02:14) Closing Remarks

🎉 Thanks to our Champion and Sponsor supporters:
👾 Raymond Odero
👾 Agustín Kussrow
👾 aldo ferretti
👾 Otis Morgan
👾 DeezMaster

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

source

This Post Has 41 Comments

  1. Faraday Academy

    Thanks for the opportunity to make this tutorial! DevOps is a lot of fun and I enjoyed getting to create this video 🙂
    Let me know if you have any questions 🤓

  2. jagadish kumar

    I am using jenkins for cicd, in jenkins under manage Nodes and cloud –> left hand side we get configure cloud.. We usually create cloud instances manually adding ip, name of the slave machines..so that jenkins job could use Is their rest api I could use to create new cloud slave under configure cloud option ???

  3. CarlosDnl

    What's is the name of the password gestor that she use?

  4. lechf1

    Anyone had error

    npm ERR! code ENOMEM

    npm ERR! syscall spawn

    npm ERR! errno -12

    npm ERR! spawn ENOMEM

    after add command front-end unit test (53:00)?

  5. Anthony K

    hi Gwen, I wasn't able to move past the front-end test section as it was running into a validation error as the vue-jest module in the transform option was not found. Has anyone else run into this issue?

  6. DevOps Journey

    Awesome to see. I also just posted a Jenkins Tutorial recently

  7. fuuman5

    Nice tutorial. Thank you.

    One question: Every time I push server to the code, your pipeline would build a docker image. Would that fill up the server's filesystem with images or is Jenkins cleaning that up automatically? Or should I put another stage in the pipeline (after pushing it to the hub) to delete the image that was just built?

  8. C

    Great tutorial!

    However I will say this, for any software engineers who are looking at using Jenkins in their companies – please don't. It's had it's time and is now one of the biggest reasons why companies have terrible platforms and pipelines. It's too complicated for a standard developer to understand, and a lot of the time gives you too much room to tie yourself in some real bad knots. This tutorial is great if you wanted to understand it because you're joining a company that's using it and you want to get up to speed. But if you're selecting from the modern CI tools with regards to which one you use to build microservices, please do not use Jenkins. Use something a lot simpler like DroneCI, ConcourseCI or any of the modern containerised CI tools (if you really want to be ahead of the curve – try Tekton – it's offerings in the secure supply chain area are unparalleled).

    As an industry we need to abandon Jenkins when building microservices. The sooner the better 🙂

  9. Gabriel Gitonga

    This is amazing content for beginners. Learned and understand what Jenkins can do

  10. Jim Odey

    I just literally finished now! Thanks Gwen and freecodecamp! It was fun!

  11. Web360.0

    @13:54 downside: this requires payment/credit card for creating a linode account !!!

  12. Benjamin

    Does anyone know the name of the extension used in 17:44 to generate a password?

  13. Angelos Naoum

    Nice tutorial covering Jenkins at a glance. What is not mentioned though is a procedure of deploying an artifact in a server after this has been built from Jenkins. In general this a topic that I have devoted with and I haven't find any smooth way (like using a Jenkins plugin for example) to push your code to a server without just SSH to it and do your magic there with custom bash commands.

  14. S༙E༙X༙🔞

    [  ] [  ]  [v] ¡EXCELENTE Western Clásico y me encanta muy tubesex.UnO buena película. Saludos desdes Arenillas, República del Ecuador, *Sudamérica. Gracias y bendiciones * soludos.

  15. A D U L T +

    6:11 couldn’t be more true 👏🏽👏🏽 on phase 4.Fo/RAPPORN is seriously redundant at this point! Not to mention tiring. Just watch, once phases 5,6 and 7 start up people will look back on phase 4 and say how it was their favorite phase or how “underrated” or “overhated” it was. Essentially the same crap they pulled with Andrew Garfield saying how he was their favorite Spider-Man, as if they weren’t the very same people people who claimed that he was the worst-

    [  ] [v] [  ] Apologies for the rant, this fandom gives me a migraine sometimes ❤

  16. Chalice

    Can we build our own vpn system ?

  17. Saint Kredo

    Ну такое себе.. реклама облачных решений..

  18. Festivejelly

    Presentation skills good do with some work tbh. Content is good but the delivery is a bit stale. Sounds like shes bored.

  19. Andrei Negru

    Hmm.. it's just me noticing you created a separate Linux machine with Docker but never used it ? But nice tutorial to start with Jenkins 👍

  20. ندائي إلي كل مسلم قال عزوجل (قُلْ إِنَّ رَبِّي يَبْسُطُ الرِّزْقَ لِمَنْ يَشَاءُ مِنْ عِبَادِهِ وَيَقْدِرُ لَهُ وَمَا أَنْفَقْتُمْ مِنْ شَيْءٍ فَهُوَ يُخْلِفُهُ وَهُوَ خَيْرُ الرَّازِقِينَ) وقال النبى ﷺ(ما نقص مال من صدقة ) رواه مسلم وقال ﷺ ( أنفق يابن آدم ينفق الله عليك) متفق عليه وقال ﷺ:( مَا مِنْ يَوْمٍ يُصبِحُ العِبادُ فِيهِ إِلَّا مَلَكَانِ يَنْزِلانِ، فَيَقُولُ أَحَدُهُمَا: اللَّهُمَّ أَعْطِ مُنْفِقًا خَلَفًا، وَيَقُولُ الآخَرُ: اللَّهُمَّ أَعْطِ مُمْسِكًا تَلَفًا )ِ((يا ناس يا امة محمد صارت قلوبكم بلا ﺭﺣﻤﻪ ﻭﻻ ﺷﻔﻘﻪ ﻭﻻ ﺃﻧﺴﺎﻧﻴﻪ ﻛﻢ ﺷﻜﻴﺖ ﻭﻛﻢ ﺑﻜﻴﺖ ﻛﻢ ﻧﺎﺩﻳﺖ ﻭﻛﻢ ﻧﺎﺷﺪﺕ ﻭﻟﻜﻦ ﻻ ﺣﻴﺎﺓ ﻟﻤﻦ ﺗﻨﺎﺩﻱ ﻫﻞ ﻳﺮﺿﻴﻜﻢ ﺃﻥ ﺃﺧﻮﺍﻧﻲ ﻳﺒﻜﻮﻥ ﻭﻳﻤﻮﺗﻮﻥ ﻣﻦ ﺍﻟﺠﻮﻉ ﻭﺃﻧﺘﻢ ﻣﻮﺟﻮﺩﻭﻥ ﻳﻌﻠﻢ ﺍﻟﻠﻪ ﺍﻟﻌﻠﻲ ﺍﻟﻌﻈﻴﻢ ﺃﻧﻨﺎ ﻻ ﻧﻤﻠﻚ ﺣﺘﻰ ﻗﻴﻤﺔ ﻛﻴﻠﻮ ﺩﻗﻴﻖ ﺃﺑﻲ ﻣﺘﻮﻓﻲ ﻭﺃﺧﻮﺍﻧﻲ ﺻﻐﺎﺭ ﻟﻴﺲ ﻟﻨﺎ ﺃﺣﺪ ﺃﻗﺴﻢ ﺑﺎﻟﻠﻪ ﺍﻟﻌﻈﻴﻢ ﺃﻧﻬﻢ ﻧﺎﻣﻮﺍ ﺃﻣﺲ ﺟﻮﻋﺎﻧﻴﻦ ﻭﻫﻢ ﻳﺒﻜﻮﻥ من الالم والولايات ﻳﺎﺃﻫﻞ ﺍﻟﺨﻴﺮ ﻫﻞ ﻳﺮﺿﻴﻜﻢ ﺃﻧﻨﺎ ﻣﻦ ﺃﻣﺲ ﻟﺤﺪ ﺍﻵﻥ ﺑﺪﻭﻥ ﺃﻛﻞ ﻳﺎﺃﺧﻮﺓ الأسلام يافاعلين الخير انا اقسم بالله على كتاب الله اني لااكذب عليك ولا انصب ولا احتال اني بنت يمنيه نازحين بسبب الحرب انا واسرتي بيتنا ايجار الشهرب 12 الف يمني والان علينا 48 الف حق اربعه شهور وصاحب البيت من الناس الي ماترحم والله يا اخي انه يجي كل يوم يبهدلنا ويتكلم علينا ويريد يطردنا من البيت للشارع لانناماقدرناندفعله الأجار وما يروح الئ بعدما نبكي ورجعوتكلمو الجيران ومهلنالاخره الأسبوع واذا دفعنا له حلف يمين بالله بيخرجنا إلى الشارع بدون رحمه واحنا.مشردين من بلادنا بسبب هذا الحرب ولانجد قوت يومنا وعايشين اناوامي واخوتي صغار والدنا متوفي الله يرحمه ومامعنا أحد في هذا الدنيا يقف جاانبنا في هذه الظروف القاسيه ومامعي اخوان كباره يقفوا معنا في هذا الظروف اخوتي صغار ولكن انا بنت لااستطيع ان اشتغل اقسم بلله ان اخواني خرجوا على للشارع وشافو وشافو الجيران ياكلو راحوا وقفوا عند بابهم لجل يعطوهم ولوخبزه يسد بها جوعهم والله الذي له ملك السموات والارض انهم غلقو الباب وطردوهم ورجعویبکو ويقولو احنا ليش مااحد يعطينا اكل هل ابونا ايرجع والله يااخي اني ماقدرت ارد عليهم غير بالدموع والله ثم والله ما نجد لقمت عیش والان لوما احدنا ساعدنا في كيلوا دقيق اقسم بالله انموت من الجوع فيا اخي انا دخيله على الله ثم عليك واريد منك المساعده لوجه الله انشدك بالله تحب الخير واتساعدني بقدر الاستطاعه ان تتواصل معي واتساب اواتصال
    +967717163745 وتطلب اسم بطاقتي وترسلي ولاتتاخر وايعوضك الله بكل خير فيا اخي انت رجال إذاشفت اسرتك جاوعين المستحيل من اجل تامن لهم الأكل ولكن انابنت عيني بصيره ويدي قصيره ليس لي أب مثلك يقف جنبي ويحميني من الذل والاهانات واخواني صغار شوف كيف حالتهم وساعدنا وأنقذنا قبل أن يطردونا في الشارع تتبهدل أو نموت من الجوع أنا اقسم بالله الذي رفع سبع سموات بلاعمدوبسط الارض ومهداني لااكذب عليك بحرف من هذا الرساله واني ماطلبتك إلى من ضيق ومن قسوت الضروف والحال الذي احنافيه وانا واسرتي نسالك بالله لولك مقدره ﻳﺎﺃﻫﻞ ﺍﻟﺨﻴﺮ ﺍﻟﻲ ﻋﻨﺪﻩ ﺍﻟﻘﺪﺭﻩ ﻋﻠﻰ ﻣﺴﺎﻋﺪﺗﻨﺎ لايتاخر علينا لحظه هاذا رقمي واتساب
    +967717163745
    الذي يقدر يساعدنا يراسلني على الواتساب نرسله ألاسم الكامل يحولنا بقدر استطاعته الله يجزيكم خير.

  21. FreeCodeCamp my fav thanks for all the contents some corrections as given below.

    Mistake at 9:48 the slide says Continuous delivery automatically deploys code to production but that's not right as we need manual approval for Continuous Delivery only in case of Continuous deployment we will automatically deploy the code to prod. There is a huge difference between Continuous delivery and deployment.

  22. TUSHAR BHARANE

    @Free Code Camp can you please make a full course on Kubernetes

  23. AiDoka

    Awesome tutorial. Was super easy to understand and follow along. Thank you Gwen and FCC.

  24. David

    Thank you, learned a lot!! 👍

  25. How is your "Login" stage persisted to you "Push" stage? Aren't stages isolate environments, or do they persist variables and changes to the next stage?

  26. THE GOSPEL

    Moreover, brethren, I declare unto you the gospel which I preached unto you, which also

    ye have received, and wherein ye stand; 2 By which also ye are saved, if ye keep in memory what I preached unto you, unless ye have believed in vain. 3 For I delivered unto you first of all that which I also received, how that Christ died for our sins according to the scriptures; 4 And that he was buried, and that he rose again the third day according to the scriptures:

    – 1 Corinthians 15: 1-4 KJV

    Greater love hath no man than this, that a man lay down his life for his friends. – John 15:13 KJV

    SAVALATION

    For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.

    – John 3:16 KJV

    For God sent not his Son into the world to condemn the world; but that the world through him might be saved. John 3:17

    Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me.

    – John 14:6 KJV

    Neither is there salvation in any other: for there is none other name under heaven given among men, whereby we must be saved. Acts 4:12

    For if, when we were enemies, we were reconciled to God by the death of his Son, much more, being reconciled, we shall be saved by his life. Romans 5:10

    But he was wounded for our transgressions, he was bruised for our iniquities: the chastisement of our peace was upon him; and with his stripes we are healed. – Isaiah 53:5

    For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. Ephesians 2:8-9

    And saying, The time is fulfilled, and the kingdom of God is at hand: repent ye, and believe the gospel.

    – Mark 1:15 KJV

    He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him.

    – John 3:36 KJV

    Who hath saved us, and called us with an holy calling, not according to our works, but according to his own purpose and grace, which was given us in Christ Jesus before the world began. 2 Timothy 1:9

    For the Son of man is come to seek and to save that which was lost. Luke 19:10

    The Lord is not slack concerning his promise, as some men count slackness; but is longsuffering to us-ward, not willing that any should perish, but that all should come to repentance. 2 Peter 3:9

    He that believeth and is baptized shall be saved; but he that believeth not shall be damned. Mark 16:16

    For as in Adam all die, even so in Christ shall all be made alive. 1 Corinthians 15:22

    For scarcely for a righteous man will one die: yet peradventure for a good man some would even dare to die. But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us. Romans 5:7-8

    I am the door: by me if any man enter in, he shall be saved, and shall go in and out, and find pasture. John 10:9

Leave a Reply