Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Authentication does not work. #29

Open
alineDiesel opened this issue Apr 13, 2018 · 2 comments
Open

Authentication does not work. #29

alineDiesel opened this issue Apr 13, 2018 · 2 comments

Comments

@alineDiesel
Copy link

Hi,

We are using jenkin_exporter directly with python and we are trying to authenticate, but it does not seems to work.

We are using it with basic auth in the url, but it gives 403.
python -u jenkins_exporter.py -j https://user:[email protected] -p 9118

If we give it throught the args (--user --password) it freeze, and does nothing.
python -u jenkins_exporter.py -j https://url.com -p 9118 --user user --password password

How does the athentication works? the server must have a special configuration?

Bye

@var23rav
Copy link

var23rav commented May 2, 2018

403 - Forbidden Seems like some kind of access permission issue.
Your credential is valid but your account does not have the access permission to use Jenkins API.

Check your permission by executing some API queries manually through curl or browser
(eg:- http://jenkins_ip:8080/api/json?tree=jobs[fullName%2Curl] ) .

And -u cmd switch is not valid for the script.

@cuzkey
Copy link

cuzkey commented Mar 21, 2019

usage: jenkins_exporter.py [-h] [-j jenkins] [-p port] jenkins_exporter.py: error: unrecognized arguments: --user user --password password

I removed the account info.

Almost like the arguments aren't setup properly...i did not look at source yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants