An open API service indexing awesome lists of open source software.

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

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`