Skip to content

Installing Jenkins in UDF

Shouvik Dutta edited this page Oct 12, 2020 · 7 revisions
  • Install Java
$ sudo apt -y update
$ sudo apt -y install openjdk-8-jre

# Check Java version
$ java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~18.04-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
$ sudo apt-get update
$ sudo apt-get install jenkins
  • Start and enable Jenkins on boot
$ sudo service jenkins start
$ sudo systemctl enable jenkins
$ sudo service jenkins status
  • Follow along the step mentioned in this document to set up a user and default plugins.

  • Install nodejs plugin within Jenkins using Reference doc

  • Setting Git creds within the pipeline (2FA secret key stackoverflow)

  • Integrate Slack notifications with Jenkins (Reference Docs: doc1, doc2)

Clone this wiki locally