You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My env.
system: centos 7
jenkins ver.1.612
php5.6.*
curl(system) ver.7.29.0
using nginx
I don't know what's wrong with jenkins or curl. It seems that one of them can't recognize the POST method unless I send a empty array POSTFIELDS with it.
public function deleteJob($jobName){
/*
******
*/
curl_setopt($curl, \CURLOPT_POST, 1);
curl_setopt($curl, \CURLOPT_POSTFIELDS, []); // the deff line
/*
******
*/
}
The text was updated successfully, but these errors were encountered:
My env.
system: centos 7
jenkins ver.1.612
php5.6.*
curl(system) ver.7.29.0
using nginx
I don't know what's wrong with jenkins or curl. It seems that one of them can't recognize the POST method unless I send a empty array POSTFIELDS with it.
The text was updated successfully, but these errors were encountered: