Showing posts with label jenkins. Show all posts
Showing posts with label jenkins. Show all posts

Jun 1, 2022

Basic Jenkins Setup

  1. Download the Jenkins war (LTS) file from https://www.jenkins.io/download/
  2. Setup JDK 11+ and set java to the path environment variable.
  3. Set JENKINS_HOME to any directory
  4. Run >java -jar jenkins.war
  5. Access Jenkins Server @ http://localhost:8080

  6. Provide Administrator password, generated at highlight path above.
  7. Proceed with 'Install suggested plugins.

Steps to open firewall port to access Jenkins server.
YOURPORT=8080
PERM="--permanent"
SERV="$PERM --service=jenkins"

firewall-cmd $PERM --new-service=jenkins
firewall-cmd $SERV --set-short="Jenkins ports"
firewall-cmd $SERV --set-description="Jenkins port exceptions"
firewall-cmd $SERV --add-port=$YOURPORT/tcp
firewall-cmd $PERM --add-service=jenkins
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload