DEV Community

sh3hz
sh3hz

Posted on

How to run Jenkins in Windows

jenkins-docker-windows-iconsJenkins is a popular open-source tool for automating software development processes.


Prerequisites:

A windows system with docker installed.


Steps for Jenkins Docker deployment in Windows:

  1. Open a Command Prompt or PowerShell with administrative privileges and run the following command to pull and run the official Jenkins docker image:
    docker run -p 8080:8080 -p 50000:50000 -v C:\path\to\your\jenkins_home:/var/jenkins_home jenkins/jenkins:lts

  2. Replace C:\path\to\your\jenkins_home with the local path where you want Jenkins to store its data.

  3. Once the Jenkins container is running, open a web browser and navigate to http://localhost:8080.

  4. Retrieve the initial administrator password by running the following command:
    docker exec -it <container_id> cat /var/jenkins_home/secrets/initialAdminPassword

Replace with the actual ID or name of your running Jenkins container.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs