https://github.com/andreynav/jenkins-test
Working with Jenkins jobs and workflow
https://github.com/andreynav/jenkins-test
Last synced: 4 months ago
JSON representation
Working with Jenkins jobs and workflow
- Host: GitHub
- URL: https://github.com/andreynav/jenkins-test
- Owner: andreynav
- Created: 2023-06-09T13:08:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-29T18:47:34.000Z (almost 3 years ago)
- Last Synced: 2025-07-26T11:35:37.004Z (11 months ago)
- Language: HTML
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# General Notes
The project is for Jenkins pipeline works testing
## Running project
Tp create docker network ngrok enter the following command:
```console
docker network create ngrok
```
To run Jenkins, open console and enter the following command:
```console
docker run -d --rm -p 8080:8080 -p 50000:50000 \
--mount type=bind,source=$SSH_AUTH_SOCK,target=/ssh-agent \
--env SSH_AUTH_SOCK=/ssh-agent \
--name c-jenkins \
-v ~/Documents/docker/jenkins-test:/var/jenkins_home \
-v ~/.ssh:/var/jenkins_home/.ssh \
jenkins/jenkins
```
To add env variable $AUTH_TOKEN to the current session enter the following command:
```console
export AUTH_TOKEN=""
```
To run Ngrok, open console and enter the following command:
```console
docker run --net=host -it ngrok/ngrok http 8080 --host-header=rewrite --authtoken
```
To check external URL, open console and enter the following command:
```console
ngrok http 8080
```
Use the value `forwarding`