https://github.com/irezaul/jenkins
https://github.com/irezaul/jenkins
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/irezaul/jenkins
- Owner: irezaul
- Created: 2021-06-24T10:32:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T13:52:58.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T21:12:32.635Z (5 months ago)
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Jenkins Cheat sheet for Ubuntu & macOs
> Jenkins is an Open-Source project written in JAVA that runs on Windows, macOS and Other Unix like Opareting system.
> Jenkins was Originally developed by SUN Microsystem in 2004 under the name Hudson..
> It's free! strong Community Supported and lots of Plugins are available and might be your first choice tool for CI (continuous integration).
> Jenkins automade the entire Software Development life-cycle.
> Whenever developer's write code, we intrigate all that code of all developers at that point of time and we build, test & deploy/deliver to the client. (this process are called CI/CD).
> Jenkins help us to achive this. beacuse of CI nows bugs(error) will be reported fast and get rectified fast. so the entire software development happens fast.
# install to macOS
``` bash
brew install java```
#### 2nd step
``` python
brew install jenkins-lts
```
#### 3rd step
```
brew services start jenkins-lts
brew services stop jenkins-lts
brew services status jenkins-lts
```# Install to Ubuntu
#### 1st step
``` bash
sudo apt-get update
```
#### added the repository key to the system:
``` bash
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
```
#### added debian package repository address :
``` bash
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
```
#### update apt :
```bash
sudo apt update
```
#### Finally install Jenkins -
```bash
sudo apt install jenkins
```#### Now start, status & stop alos working -
``` bash
sudo systemctl start jenkins
sudo systemctl status jenkins
sudo systemctl stop jenkins
```If you need any question & need to added somthing please info me....
[rezaulkarim](fb.com/mtmartbd)## How to added a agent -
##### Go Jenkins Dashboard click to `Nodes` then click to `New Nodes`
##### click on add node & next show this screen & copy the `agent.jar` link..


#### now go to Host Machine & download `Agent.jar`
##### go to the home directory & download it by command-```bash
wget http://192.168.1.11:8080/jnlpJars/agent.jar
```
#### then run the command which jenkins give to you when added node.

### Example-
```bash
java -jar agent.jar -jnlpUrl http://192.168.1.11:8080/computer/agent1/jenkins-agent.jnlp -secret a7c38d66f03fe6be49aa7484b4a1f5acbd662db3acc92bfc51abc813f9e0bd3c -workDir "/home/"
```
#### Now your node ready -
[MASTER-ACADEMY](https://master.com.bd/)
join here [codingbootcamp](fb.com/groups/codingbootcampbd)