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

[Bug]: YOJENKINS_TOKEN not recognized in yojenkins auth verify but works with other commands #217

Open
1 of 5 tasks
ismet55555 opened this issue Apr 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ismet55555
Copy link
Owner

ismet55555 commented Apr 25, 2023

What happened?

When running yojenkins auth verify the environmental variable YOJENKINS_TOKEN is not recognized

How can we reproduce this?

export YOJENKINS_TOKEN="<valid token>"

yojenkins auth verify   # fails
yojenkins server info   # works

Command --debug output

When it works it gives wrong debug logs saying it loaded from --token

[20:20:37] [256 ] [auth.py                 : 538] The following profile has been loaded:
[20:20:37] [256 ] [auth.py                 : 539]     - Profile:             cardopenjenkins
[20:20:37] [256 ] [auth.py                 : 540]     - Jenkins Server URL:  https://myjenkins.com
[20:20:37] [256 ] [auth.py                 : 541]     - Username:            ezg822
[20:20:37] [256 ] [auth.py                 : 595]     - API Token:           Loaded via --token

Version of yojenkins

0.0.85

Where was yojenkins run in relation to the Jenkins server?

Locally

Was the Jenkins server containerized?

No

Which operating systems were you using when this happened?

  • macOS
  • Windows
  • Linux
  • Other
  • I don't know

How is your day going?

Pretty good

@ismet55555 ismet55555 added the bug Something isn't working label Apr 25, 2023
@ismet55555 ismet55555 self-assigned this Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant