Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install Jenkins in OS-X <Error: Unable to access jarfile jenkins.war>

I am trying to install Jenkins in my mac and i have followed this below steps:

  1. Downloaded the Jenkins war file for OS-X

  2. After cd , Ran this:

    java -jar jenkins.war

  3. getting this error in my terminal:

    Error: Unable to access jarfile jenkins.war

Any idea what i am doing wrong??? FYI, I was successful in windows by following those steps.

like image 891
Saikat Avatar asked Feb 26 '16 01:02

Saikat


People also ask

Where is Jenkins war file located?

This file is usually located in /usr/share/jenkins . If this is not the case for your system, in Manage Jenkins -> System Information , it will display the path to the . war file under executable-war .

How do I open a Jenkins war file?

Run the WAR fileOpen up a terminal/command prompt window to the download directory. Run the command java -jar jenkins. war . Browse to http://localhost:8080 and wait until the Unlock Jenkins page appears.


1 Answers

Here how the issue got resolved. If you got mac or windows regardless,

  1. go to jenkins-ci.org
  2. Select long term support release which is a stable build.
  3. Click on the link .war
  4. Then in Terminal cd to that path where you downloaded
  5. Run this command: java -jar jenkins.war

You are good to go!!!

like image 167
Saikat Avatar answered Oct 19 '22 00:10

Saikat