Setting up jenkins pipeline with a lint validation check

This post shows how to set up a Jenkins pipeline for automating build processes, continuous integration and automated deployment

Set up Android SDK

I assume this has already been done on your machine

Set up Jenkins

Step 1: Install homebrew


brew --version

Step 2: Install jenkins


brew install jenkins-lts

Step 3: Start the jenkins server


brew services start jenkins-lts

Step 4: Get the installation password

http://localhost:8080/login?from=%2F

Screenshot 2024-02-12 at 9.55.14 AM.png


cat /Users/hle3/.jenkins/secrets/initialAdminPassword

Screenshot 2024-02-12 at 9.53.41 AM.png

Starting and stopping Jenkins services


brew services stop jenkins-lts
brew services start jenkins-lts

Once logged in, you will see this

Screenshot 2024-02-12 at 9.55.39 AM.png

Install the suggested plugin

Create a Jenkins user

admin
123456

Once done with the admin setup, you will see this screen and ready to set up Jenkins for the new job.

Screenshot 2024-02-12 at 9.57.59 AM.png

Configure Global properties for Jenkins

Manage Jenkins -> Configure System -> Global properties

Configure the Android SDK location

The path to Android SDK is /Users/hle3/Library/Android/sdk

Configure the home location

The path to JAVA_HOME /Library/Java/JavaVirtualMachines/jdk-11.0.16.jdk


Resources
https://medium.com/appgambit/setup-jenkins-on-centos-with-docker-for-selenium-b7dba07b9ffa

https://coralogix.com/blog/how-to-install-and-configure-jenkins-on-the-mac-os/