Giter Club home page Giter Club logo

session-ci-cd-jenkins's Introduction

opsschool-ci-cd-lesson

Welcome to our CI/CD session. Here you will have instructions on how to create the Jenkins environment. And the code you will have to deploy.

Install Jenkins master

  • Step one:
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
  • Step two: After installation save the temporary password to activate Jenkins initially. It can be also retrieved from here:
/var/lib/jenkins/secrets/initialAdminPassword

Navigate to "http://<your instance/vm ip>:8080" and initiate the Jenkins master.

  • Step three: Select "Suggested Plugins" installation type.

  • Step four: Create yourself an admin account.

Configure a single SSH slave for Jenkins

  • Step one:
  1. Navigate to "Manage Jenkins"
  2. "Manage Plugins"
  3. "Install SSH Agent Plugins"
  4. After reload, go to "Credentials" and select all providers and types.
  5. "Manage Nodes"
  6. Add an SSH Node
  7. Fill out Credentials Further examples for setup: https://wiki.jenkins.io/display/JENKINS/SSH+Slaves+plugin
  8. Install Java on slave if needed. https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get

Voila!

#For running the tests

session-ci-cd-jenkins's People

Contributors

tsahiduek avatar li0nbelenky avatar burdandrei avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.