1
0
mirror of https://github.com/newrelic-forks/golang-jenkins.git synced 2026-06-18 20:15:04 +02:00

91 Commits

Author SHA1 Message Date
Michael Watkinson a63ef4c85d Merge pull request #11 from newrelic-forks/NR-40583-mwatkinson
Update all necessary methods to support contexts
2022-08-30 16:44:23 -04:00
mwatkinson cde99a3c59 Update all necessary methods to support contexts 2022-08-30 16:23:10 -04:00
David Hernando c3a4f89a9b Merge pull request #10 from newrelic-forks/fix-parameter-json-unmarshaling
removed Parameter from the Action struct so that it can be deserialized properly
2022-06-02 12:45:51 +02:00
dhernando 7ed620f2d4 removed Paramter from the Action struct so that it can be deserialized properly 2022-06-02 12:42:24 +02:00
Michael Watkinson b826bb6065 Merge pull request #9 from newrelic-forks/nr-mwatkinson_remove_status_check
Revert third party update to check for 200 status code in sendRequest
2022-06-01 15:01:48 -04:00
mwatkinson 1a7ff21364 Revert third party update to check for 200 status code in sendRequest
This change was made in https://github.com/yosida95/golang-jenkins/commit/3b5bfc05f87c3719955cae4771ce1db2b093c7ea
2022-06-01 14:36:18 -04:00
David Hernando 0a2905359e Merge pull request #8 from newrelic-forks/handle-status-codes-properly
Handle status codes properly
2022-06-01 15:34:07 +02:00
dhernando 7385c5bc60 remove trailing whitespace 2022-06-01 15:20:24 +02:00
dhernando f44524c69b changed status code check to be for numbers greater than 400 2022-06-01 12:22:49 +02:00
Michael Watkinson 1ebf338dd2 Merge pull request #7 from newrelic-forks/nr-mwatkinson_context
Add Context Support to GetJob and GetBuild
2022-05-20 14:19:38 -04:00
mwatkinson 3386271f90 Eliminate Duplicate Code in get and getWithContext 2022-05-19 13:29:07 -04:00
mwatkinson 959e27c475 Add Context Support for GetJob and GetBuild 2022-05-18 17:32:31 -04:00
Matthew Sneeden 3e517517f6 Merge pull request #6 from newrelic-forks/upstream-merge
Upstream merge
2021-05-12 23:07:55 -05:00
Matthew Sneeden 8f5a0c3df3 Merge remote-tracking branch 'upstream/master' into upstream-merge 2021-05-12 22:41:10 -05:00
Kohei YOSHIDA 2646438d29 Merge pull request #56 from icholy/check_status_code
Check for non-200 http status code
2021-01-07 15:41:31 +09:00
Ilia Choly 3b5bfc05f8 Check for non-200 http status code 2020-09-15 13:28:18 -04:00
Matthew Sneeden 831587445b Merge pull request #5 from newrelic-forks/add-class-to-job
Add Class field to Job
2019-07-08 11:44:19 -05:00
Caleb Troughton acd27088c3 Add Class field to Job 2019-07-03 14:58:39 -07:00
Matthew Sneeden 4772716c47 Add Class Field to Computer Struct (#51) 2019-04-04 21:58:45 +09:00
Stuart Skelton e659c8a6f3 Expose the Builds in a jenkins Job (#49) 2018-08-20 10:54:51 +09:00
vetheslav f54381a2b6 Parse parameters in a Job (#48) 2018-08-20 10:54:35 +09:00
Illya Chekrygin c0efe425b4 Add CSRF Protection support (#47) 2018-05-05 18:34:25 +09:00
Matthew Sneeden 7518dfebbb Merge pull request #4 from newrelic-forks/imakewebthings-patch-1
Make parameter values interface{}
2017-08-24 16:38:36 -07:00
Caleb Troughton 584f8e34b8 Update queue.go 2017-08-24 16:36:01 -07:00
Caleb Troughton 5dc860fae9 Merge pull request #3 from newrelic-forks/msneeden-patch-1
s/parameter/parameters
2017-08-24 15:15:02 -07:00
Matthew Sneeden e964b64176 s/parameter/parameters 2017-08-24 15:12:49 -07:00
Mike Solomon 41c58dd5d0 Merge pull request #2 from newrelic-forks/get_job_params
Allow for pulling detailed build information from a single GetJob request
2017-08-03 14:34:12 -07:00
Caleb Troughton 8338938cba Add Builds slice to Job, Parameters to Build 2017-08-03 14:18:58 -07:00
Caleb Troughton 3f62cd1b7a Add params parameter to GetJob function 2017-08-03 14:17:31 -07:00
Johannes Petzold e0bcfadf57 Merge pull request #1 from newrelic-forks/post-params
pass POST parameters in body, not URL
2017-07-25 11:33:40 -07:00
Johannes Petzold 0ef94b491f pass POST parameters in body, not URL
to avoid 414's due to URL length limit when parameter values are big
2017-07-25 11:28:10 -07:00
Adam Straughan a3291b5851 Add jenkins.SetHTTPClient (#43)
Allows for custom time-out, disable TLS , etc.
2017-04-06 02:11:26 +09:00
Kohei YOSHIDA 37824f218c Merge pull request #45 from NearlyUnique/parse_build_parameters
GetJob deserializes `parameters` from Build response
2017-04-01 17:07:48 +09:00
Adam Straughan 691f89ac43 GetJob deserializes parameters from Build response 2017-03-28 17:24:33 +01:00
Kohei YOSHIDA 240cc3577c Merge pull request #38 from kucuny/master
#37 Add 'changeSet' data when get build information
2017-01-09 23:00:23 +09:00
Kohei YOSHIDA 256a689d2e Merge pull request #39 from johannespetzold/delete-job
add DeleteJob() method and check post() response code
2017-01-09 22:53:35 +09:00
yosida95 5bed49bda4 update contact info 2017-01-09 05:20:58 +09:00
Johannes Petzold e857b80171 add DeleteJob() method and check post() response code 2016-12-29 18:09:25 -08:00
Kookheon Kwon 14176a5bc4 Add 'changeSet' data when get build information 2016-12-05 17:50:03 +09:00
Kohei YOSHIDA 6a63a8440e Merge pull request #36 from kucuny/master
Modify typo
2016-12-05 15:34:23 +09:00
Kookheon Kwon a3c140dfd8 Modify typo 2016-12-05 15:29:20 +09:00
Kohei YOSHIDA 24737dde01 Merge pull request #29 from msneeden/msneeden/build-url
Determine build url based on existence of job params
2016-03-28 15:33:36 +09:00
Matthew Sneeden c0c3191462 Determine build url based on existence of job params 2016-03-18 08:18:53 -07:00
Kohei YOSHIDA 93623dc293 Merge pull request #28 from msneeden/msneeden/get-last-build
Adds GetLastBuild, updates README
2016-03-09 12:10:06 +09:00
Matthew Sneeden 6f88328ca9 Adds GetLastBuild, updates README 2016-03-08 10:42:58 -08:00
Kohei YOSHIDA e2a044761a Merge pull request #27 from msneeden/adds-sample-usage
Adds sample usage to README
2016-02-18 22:24:28 +09:00
Matthew Sneeden ccd4ce0bde Adds sample usage to README 2016-02-18 05:20:47 -08:00
Kohei YOSHIDA b8823f71df Merge pull request #26 from msneeden/build-description-and-structs
Implements 'SetBuildDescription', adds upstream build cause struct data
2016-02-18 21:39:27 +09:00
Matthew Sneeden b6642fb140 Implements 'SetBuildDescription', adds upstream build cause data to structs 2016-02-17 08:22:54 -08:00
Kohei YOSHIDA d98396f1a6 Merge pull request #25 from yosida95/revert-23-set-build-description
Revert "Adds SetBuildDescription"
2016-02-17 18:59:46 +09:00