DevOps(Day-28) : How to install jenkins and create a freestyle project

 

  • Update your system
sudo apt update

  1. Install java
sudo apt install openjdk-11-jre

  1. Validate Installation
java -version

It should look something like this

  1. Just copy these commands and paste them onto your terminal.
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee \   /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \   https://pkg.jenkins.io/debian binary/ | sudo tee \   /etc/apt/sources.list.d/jenkins.list > /dev/nullsudo apt-get update sudo apt-get install jenkins

  1. Now navigate to the Url with port 8080 and navigate to the path for admin password.

  2. Now, install the suggested plugins.

  3. Now, create the user and provide the details.

  4. Finally, Login to the Url

  • Create a freestyle project and display “hello world”

    1. Go to new item and select freestyle project.

    2. Provide the details in general settings.

    3. Go to Build environment and then build step. Write the required code.

    4. Click on build now to create the project.

    5. Now, check the console output

      Finally the Project is completed.

Thanks for reading my article. Have a nice day.

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction