I defined API key (and it works if I trying to connect through curl). Also, I installed ssh keys (private and public), but still not able to connect to DO. I’m getting: “Unable to authorize you”.
Here are the logs
Sep 09, 2021 5:29:06 AM FINE com.myjeeva.digitalocean.impl.DigitalOceanClient executeHttpRequest
HTTP Request:: GET https://api.digitalocean.com/v2/droplets?page=1&per_page=10
Sep 09, 2021 5:29:07 AM FINE com.myjeeva.digitalocean.impl.DigitalOceanClient executeHttpRequest
HTTP Response Object:: HttpResponseProxy{HTTP/1.1 401 Unauthorized [Date: Thu, 09 Sep 2021 05:29:07 GMT, Content-Type: application/json, Content-Length: 64, Connection: keep-alive, x-gateway: Edge-Gateway, x-request-id: 5cbed814-f630-41a0-8b5c-3a1eef2fa692, x-response-from: Edge-Gateway, CF-Cache-Status: DYNAMIC, Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct", Set-Cookie: __cf_bm=hrih4qfxXhs3OQa6X1VIJQT2QVIyq4xwiWnFmen0dww-1631165347-0-AYC0M+sBYEqE6MF1biLfkXFiWHQStKbjtthISeH5FvrbvqyCrUFAtMiN9I5ZHGwOqQ==; path=/; expires=Thu, 09-Sep-21 05:59:07 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None, Server: cloudflare, CF-RAY: 68be045b98a3daa8-ARN] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 64,Chunked: false]}}
Sep 09, 2021 5:29:07 AM FINE com.myjeeva.digitalocean.impl.DigitalOceanClient evaluateResponse
JSON Response: {"id": "Unauthorized", "message": "Unable to authenticate you" }
Sep 09, 2021 5:29:07 AM FINE com.myjeeva.digitalocean.impl.DigitalOceanClient evaluateResponse
HTTP Status Code: 401
Error Id: Unauthorized
Error Message: Unable to authenticate you
Please, help.
Jenkins v 2.309 DO plugin v 1.3.0
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello there,
Have you also defined the auth token (authToken) in the parameters as this is needed too?
For reference check the Jenkins Docs here:
https://plugins.jenkins.io/digitalocean-plugin/
Hope that this helps! Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.