Skip to content

Commit

Permalink
up: update some jenkins logic add cache logic
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 17, 2022
1 parent 0b8b3f1 commit 30b7861
Show file tree
Hide file tree
Showing 6 changed files with 368 additions and 176 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ $jenkins = new \PhpPkg\JenkinsClient\Jenkins('http://host.org:8080');

If your Jenkins needs authentication, you need to pass a URL like this : `'http://user:[email protected]:8080'`.

Simple example - sending "String Parameters":

```shell
curl JENKINS_URL/job/JOB_NAME/buildWithParameters \
--user USER:TOKEN \
--data id=123 --data verbosity=high
```

Another example - sending a "File Parameter":

```shell
curl JENKINS_URL/job/JOB_NAME/buildWithParameters \
--user USER:PASSWORD \
--form FILE_LOCATION_AS_SET_IN_JENKINS=@PATH_TO_FILE
```

Here are some examples of how to use it:

### Get the color of the job
Expand Down
Loading

0 comments on commit 30b7861

Please sign in to comment.