Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The deleteJob function ain't work well #44

Open
iTryIt opened this issue Jul 13, 2016 · 0 comments
Open

The deleteJob function ain't work well #44

iTryIt opened this issue Jul 13, 2016 · 0 comments

Comments

@iTryIt
Copy link

iTryIt commented Jul 13, 2016

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
  /*
    ******
  */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant