yojenkins icon indicating copy to clipboard operation
yojenkins copied to clipboard

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

Open ismet55555 opened this issue 1 year ago • 0 comments

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:             myopenjenkins
[20:20:37] [256 ] [auth.py                 : 540]     - Jenkins Server URL:  https://myjenkins.com
[20:20:37] [256 ] [auth.py                 : 541]     - Username:            user822
[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?

  • [X] macOS
  • [ ] Windows
  • [ ] Linux
  • [ ] Other
  • [ ] I don't know

How is your day going?

Pretty good

ismet55555 avatar Apr 25 '23 00:04 ismet55555