diff --git a/01_03.md b/01_03.md new file mode 100644 index 0000000..18e5f01 --- /dev/null +++ b/01_03.md @@ -0,0 +1,26 @@ +# Learning Jenkins, 01-03: Install Jenkins on macOS + +# Prerequisites +The target system should be running a recent version of the macOS + +You will need to be able to access the system via CLI and via HTTP on port `8080`. + +You will need to have [Homebrew](https://brew.sh/) installed. + +You may need to have `root` permission on the target system. + +# Installation +In a terminal, run the following commands: +``` +brew install java11 +brew install jenkins-lts +brew services start jenkins-lts +cat /.../initialAdminPassword +``` + +# Using the Initial Admin Password +Run the following command and copy the output: +``` +``` + +Open a browser to [localhost:8080](http://localhost:8080) and enter the initial admin password. diff --git a/01_05.md b/01_05.md deleted file mode 100644 index 406a4e8..0000000 --- a/01_05.md +++ /dev/null @@ -1,28 +0,0 @@ -# Learning Jenkins, 01-05: Install Jenkins on Ubuntu - -# Prerequisites -The target system should be running a recent version of the Ubuntu operating system. - -You will need to be able to access the system via CLI, most likely over SSH, and via HTTP on port `8080`. - - -You will need to have `root` permission on the target system, specifically so you can run commands using `sudo`. - -# Installation -In a terminal, run the following commands: -``` -wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - -sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' -sudo apt-get update -y -sudo apt-get -y install openjdk-11-jdk -sudo apt-get -y install jenkins -sudo cat /var/lib/jenkins/secrets/initialAdminPassword -``` - -# Using the Initial Admin Password -Run the following command and copy the output: -``` -cat /var/lib/jenkins/secrets/initialAdminPassword -``` - -Open a browser to [localhost:8080](http://localhost:8080) and enter the initial admin password.