-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
up: update some jenkins logic add cache logic
- Loading branch information
Showing
6 changed files
with
368 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
Oops, something went wrong.