Git Product home page Git Product logo

jenkins-workshop's Introduction

Jenkins CI/CD Pipelines Workshop Quick Start Guide

System Requirements:

  • 4GB available RAM.
  • 20GB available disk storage.

Getting started:

  1. Install prerequisites:

  2. Checkout this repository and change directory to the root of the repository.

  3. [Optional] Create a .env file and update your GitHub credentials and repository details. See .env.example file for reference. You'll need a GitHub API token with only the public_repo scope assigned to it.

  4. Launch or reset workshop:

    $ ./reset-workshop.sh
    Resetting Jenkins workshop: 'cicd-jenkins-workshop-1'...
    ...
    Switched to context "cicd-jenkins-workshop-1".
    Installing Jenkins...
    Done!
    
    
    ====================================================================================
    Jenkins Admin user URL:               http://192.168.39.20:32000/login
    Jenkins Admin user name:              admin
    Jenkins Admin user password:          secret
    GitHub WebHook URL: (Ngrok tunnel)    https://123456abc.ngrok.io/github-webhook/
    ====================================================================================
  5. [Optional] Update GitHub webhook URL in your GitHub repository settings.

  6. Login to the Jenkins web UI and enter your credentials. If you see the Welcome to ${WORKSHOP_NAME} Jenkins CI/CD! screen, you are ready!

Cleanup:

$ ./reset-workshop.sh cleanup

Troubleshooting

  • I'm getting a browser timeout error when trying to access the Jenkins UI /login page. Please try again to provision the lab by executing:

    ./reset-workshop.sh
  • I see the following error when executing ./reset-workshop.sh:

    zsh: command not found: minikube

    Please make sure you installed all the system requirements as per described in the Getting Started section.

  • I see the following message when executing ./reset-workshop.sh:

    The ‘hyperkit’ driver requires elevated permissions. The following commands will be executed:
    $ sudo chown root:wheel /Users/razalon/.minikube/bin/docker-machine-driver-hyperkit 
    $ sudo chmod u+s /Users/razalon/.minikube/bin/docker-machine-driver-hyperkit 

    Minikube is trying to update Hyperkit driver, this is normal. Please enter your operating system username and password and hit Enter.

Scala Project:

  • Run unit tests:
    $ sbt 'testOnly -- -n UnitTest'
  • Run "Slow" suite:
    $ sbt 'testOnly -- -n Slow'
  • Run all tests:
    $ sbt test

jenkins-workshop's People

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.