Jira Configuration Validation

To test the credentials within the Doorman’s Jira configuration and to thus ensure the server is still contactable by the Doorman, the jira validator can be found in the utilities package.

This will make a connection using the credentials specified in the configuration file to the Jira instance and validate permissions for the user.

java -jar utilities-<version>.jar jira-validate --config-file <config file>

Results

On successful connection and validation the tool will print this affirmation to the console and set errno to 0.

On encountering any error the tool will print out the cause and set errno appropriately.

Exit codes are as follows

0 - Success 1 - Unknown Error 2 - Specified configuration file is not a Doorman 3 - Specified configuration file doesn’t configure a Jira instance 4 - The Jira instance is unreachable at the specified UR 5 - Specified user is invalid 6 - Specified password is either incorrect or the user needs further validation (captcha entry) 7 - Specified project does not exist