Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active May 4, 2021 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save weshouman/da95679307dd2de87f9c to your computer and use it in GitHub Desktop.
Save weshouman/da95679307dd2de87f9c to your computer and use it in GitHub Desktop.
installing Jenkins notes #jenkins

Installation

Preinstallation

  • Java jre and jdk should be installed.

Steps on ubuntu

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

We could also use http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key for the stable version

##Execution Jenkins will be available on port 8080.
So, open a browser and go to localhost:8080

Github plug-in installation

  • Go to http://localhost:8080/pluginManager/
  • Search for github in the available plugins and install it.
  • We need to restart after installation, we have one of 2 options
  • Go to localhost:8080/safeRestart
  • or Go to localhost:8080/restart: which forces the restart even if build processes were in the BG

Making a project

  • Choose git as the source code management
  • Check the periodically .. currently using @weekly flag to make a weekly build
@aipages
Copy link

aipages commented Nov 24, 2017

可以试一下更好用的开源 flowci,简单易用,支持 docker。https://github.com/FlowCI/docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment