def add_jenkins_job_options(parser):
    """Add a new job to Jenkins for updating chef-repo

    :rtype: argparse.ArgumentParser

    """
    cookbook = parser.add_parser('jenkins', help='Add a new cookbook job to '
                                                 'Jenkins')
    cookbook.add_argument('jenkins', action='store',
                          help='The jenkins server hostname')
    cookbook.add_argument('name', action='store',
                          help='The cookbook name')
    cookbook.add_argument('cookbook', action='store',
                          help='The cookbook git repository URL')
    cookbook.add_argument('chef_repo', action='store',
                          help='The chef-repo git repository URL')
    cookbook.add_argument('-u', '--username',
                          action='store',
                          dest='username',
                          default=pwd.getpwuid(os.getuid())[0],
                          help='Specify a different username than the repo '
                               'owner')
    cookbook.add_argument('-n', '--hipchat-notification',
                          action='store',
                          dest='hipchat',
                          help='Hipchat room for notifications')
    cookbook.set_defaults(func='new_job')
Add a new job to Jenkins for updating chef-repo

    :rtype: argparse.ArgumentParser