Jenkins Plugin: Readme.md file updated (#2943)

* Readme.md file updated

The documentation was not concise and does not include the case if I don't want to use env variables.

* Prettier invoked.

Executed prettier command.

Co-authored-by: Amit Khuraba <amit.khurana@africa.airtel.com>
This commit is contained in:
amitkhurana92
2020-10-17 19:22:20 +05:30
committed by GitHub
parent 9cf0cb255c
commit bbf5faec6f
+16 -1
View File
@@ -33,7 +33,7 @@ proxy:
$env: JENKINS_BASIC_AUTH_HEADER
```
4. Add an environment variable which contains the Jenkins credentials, (note: use an API token not your password)
4. Add an environment variable which contains the Jenkins credentials, (note: use an API token not your password). Here user is the name of the user created in Jenkins.
```shell
HEADER=$(echo -n user:api-token | base64)
@@ -61,6 +61,21 @@ spec:
8. Click the component in the catalog you should now see Jenkins builds, and a last build result for your master build.
Note:
If you are not using environment variable then you can directly type API token in app-config.yaml
```yaml
proxy:
'/jenkins/api':
target: 'http://localhost:8080' # your Jenkins URL
changeOrigin: true
headers:
Authorization: Basic YWRtaW46MTFlYzI1NmU0Mzg1MDFjM2Y1Yzc2Yjc1MWE3ZTQ3YWY4Mw==
```
YWRtaW46MTFlYzI1NmU0Mzg1MDFjM2Y1Yzc2Yjc1MWE3ZTQ3YWY4Mw== is the base64 of user and it's API token e.g. admin:11ec256e438501c3f5c76b751a7e47af83
## Features
- View all runs inside a folder