Coder Social home page Coder Social logo

fleschutz / sample-pipeline Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 116 KB

Contains step-by-step instructions to install Jenkins and sample Pipelines for CI/CD (Continuous Integration and Continuous Delivery/Deployment).

License: Creative Commons Zero v1.0 Universal

docker jenkins jenkinsfile pipeline sample snaps

sample-pipeline's Introduction

How to install Jenkins and Pipelines

This repo contains step-by-step instructions to install Jenkins and sample Pipelines for CI/CD (Continuous Integration and Continuous Delivery/Deployment).

#1 Install the Jenkins server ๐Ÿ”ง

  • Execute for Docker: docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
  • Execute for Linux Snaps: sudo snap install --classic jenkins
  • Otherwise, download and install it from: https://jenkins.io/download (available for Arch Linux, FreeBSD, Gentoo, macOS, OpenBSD, OpenIndiana Hipster, openSUSE, Red Hat/Fedora/Alma/Rocky/CentOS, Ubuntu/Debian, Windows)

NOTE: Pipelines are supported in Jenkins version 2.337 or newer.

#2 Browse to your new Jenkins server ๐Ÿ’ป

Launch your Web browser and enter the URL: http://HOSTNAME:8080 (replace HOSTNAME by the computer name where Jenkins has been installed).

#3 Unlock Jenkins ๐Ÿ”“

  1. Execute sudo cat /PATH/TO/initialAdminPassword (replace /PATH/TO) to view the initial password saved by Jenkins during the installation.
  2. Enter the initial password to unlock Jenkins.

#4 Install necessary Plugins ๐Ÿ“Œ

  1. Click on 'Select plugins to install'
  2. Add these plugins: 'Build Name and Description Setter'
  3. Click Install and wait until the installation has finished.

#5 Create an Admin Account ๐Ÿง™โ€โ™‚๏ธ

  1. Enter the username, password (twice), and the full name.
  2. Afterward, enter your Jenkins URL and log in.

#6 Create a Pipeline ๐Ÿ“

  1. In the dashboard click on: + Create element (on left side).
  2. Enter a job name (e.g. "sample-pipeline") and select Pipeline, then press the OK button.
  3. The job configuration is displayed now - scroll down and select the Pipeline script.
  4. As script enter the content of the Jenkinsfile (attached to this repository).
  5. Click the Save button.

#7 Start the Pipeline Job โ–ถ๏ธ

  1. Click on Dashboard (on left side).
  2. In your job list press the green Play button (on right side).
  3. The Stage View visualizes the whole build process in a neat table.

๐Ÿ† Congratulations

You're done. Welcome to the Jenkins ecosystem! More background information can be found here:

๐Ÿš€ What's Next?

๐Ÿ“ง Feedback

Anything missing or needs to be improved? Don't be shy, just send your email feedback to: markus.fleschutz [at] gmail.com

๐Ÿค License & Copyright

This open source project is licensed under the CC0 license. All trademarks are the property of their respective owners.

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.