Fix token generation.
Remove legacy method of token generation.
username and password come from global section of lftools.ini.
[global]
username = lfid
password =
url comes from -s section of jenkins_jobs.ini
eg: [jenkins.acumos.org/sandbox]
url=jenkins.acumos.org/sandbox
example command
lftools jenkins -s 'jenkins.acumos.org/sandbox' token change
option --name set token name default is token-created-by-lftools
changeApiToken no longer exists, so we must allways generate a
new token.
NOTE: token print and token change now do the same thing.
That is generate a new token and return it to console.
I could remove one of them but Im wary of breaking any
legacy scripts that may exist.
NOTE: This will not work with SAML Plugin jenkins.
But I need it for automation before we switch all
jenkins to SAML
ISSUE: RELENG-2046
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I075c530f6e9fad7b477383867d52b83bba745662