DevOps/Cloud By GK
  • DevOps/Cloud Introduction
  • 🚩AWS
    • Create AWS Account
    • Launch EC2 Instance
  • 🚩Linux
    • User Managment
      • Adding the User to Sudo group
      • visudo
    • Directory / File Management
      • Vi
      • Changing Permissions (chmod)
      • Filtering IO/File
    • Memory Management
    • Process Management
    • Network Management
    • Service Management
    • Environmental Variables
      • $PATH
    • Utilities
    • SHELL PROGRAMMING
      • Hello World
      • Variables
      • Command Line arguments
      • Conditional Statements
      • Array
      • Loops
      • Functions
      • AWK
      • sed
      • Example Useful Scripts
      • Basic -> Advanced
  • 🚩git
    • Introduction
    • Creating GitHub Account
    • Installation
      • Git Bash In Windows
      • Git In VS Code
      • Git In Eclipse
      • Git CLI in Linux
  • Creating Git Remote Repository
  • Git Commands L -> R
  • Git Commands L <- R
  • Git Branch Commands
  • Using SSH (Password Less)
  • 🚩maven
    • Introduction
    • Installation
    • POM.xml
    • Goals
  • 🚩SonarQube
    • Introduction
    • Sonar Cloud
    • Creating Project In SonarCloud
    • Installing Sonar-Scanner
    • Triggering Scan
  • 🚩Nexus
    • Introduction
    • Installation of Nexus
    • Creating Repository
    • Uploading Artifacts to Repository
  • 🚩Jenkins
    • Introduction
    • Installation of Jenkins
    • First Job In Jenkins
    • Git + Jenkins
      • WebHook
    • Maven + Jenkins
    • Sonar-Scanner + Jenkins
    • Nexus + Jenkins
Powered by GitBook
On this page
  1. Jenkins

First Job In Jenkins

To create a "Hello World" job in Jenkins, follow these steps:

  1. Access the Jenkins web interface: Open a web browser and navigate to http://localhost:8080 or the appropriate URL where your Jenkins instance is running.

  2. Log in to Jenkins: If this is your first time accessing Jenkins, you may need to enter the initial admin password provided during the setup process. Follow the instructions on the web interface to log in.

  3. Create a new job: On the Jenkins dashboard, click on "New Item" on the left-hand side. Enter a name for your job, such as "Hello World", and select "Freestyle project". Click "OK" to proceed.

  4. Configure the job:

    • General configuration: Provide a brief description of the job (optional).

    • Build section: Click on the "Add build step" dropdown and select "Execute shell" (for Linux/Unix) or "Execute Windows batch command" (for Windows). This allows you to run shell commands or batch commands as part of the build process.

    • Build command: In the command box, enter the following command:

      echo "Hello, World!"

      This command will print "Hello, World!" as the output of the build.

  5. Save the job configuration: Scroll down and click on "Save" to save the job configuration.

  6. Build the job: On the Jenkins dashboard, you will see the newly created job. Click on the job name to navigate to its details page. From there, click on "Build Now" to trigger the build.

  7. View the build output: Once the build is triggered, you will see a build in progress on the job details page. Click on the build number to view the build output. You should see "Hello, World!" printed in the console output.

PreviousInstallation of JenkinsNextGit + Jenkins

Last updated 2 years ago

🚩