RDTK / generator

A tool for creating Jenkins jobs and other things from recipes describing software projects
GNU General Public License v3.0
21 stars 3 forks source link

Validate username during Jenkins installation #34

Closed scymtym closed 5 years ago

scymtym commented 5 years ago

Is your feature request related to a problem? Please describe.

Jenkins usernames are restricted to alphanumeric characters, underscore and dash. Specifying an invalid username as an argument to the install-jenkins command as in

build-generator install-jenkins --username 'foo bar' …

does not result in an error.

Describe the solution you'd like

It would be good if the generator validated the username argument and printed an error for invalid values instead of going through with the installation.