Closed scymtym closed 5 years ago
Add a new command that can be invoked like this
build-generator create-jenkins-user -u USERNAME -p PASSWORD -e EMAIL TARGET-DIRECTORY
or like this
build-generator create-jenkins-user USERNAME PASSWORD EMAIL TARGET-DIRECTORY
to create a new user account in an existing Jenkins installation.
Design decisions:
[ ] Which command syntax (see above) is better?
[ ] Should TARGET-DIRECTORY be optional, defaulting to the current directory?
TARGET-DIRECTORY
[X] Should we try to enforce that Jenkins is not running or restarted? Yes. we can check for files queue.xml and queue.xml.bak
queue.xml
queue.xml.bak
[X] Do we have to update users/users.xml? Yes, after a small experiment, that seems to be necessary.
users/users.xml
Add a new command that can be invoked like this
or like this
to create a new user account in an existing Jenkins installation.
Design decisions:
[ ] Which command syntax (see above) is better?
[ ] Should
TARGET-DIRECTORY
be optional, defaulting to the current directory?[X] Should we try to enforce that Jenkins is not running or restarted? Yes. we can check for files
queue.xml
andqueue.xml.bak
[X] Do we have to update
users/users.xml
? Yes, after a small experiment, that seems to be necessary.