Skip to content

Instantly share code, notes, and snippets.

@srawlins
Created March 22, 2012 22:36
Show Gist options
  • Save srawlins/2165165 to your computer and use it in GitHub Desktop.
Save srawlins/2165165 to your computer and use it in GitHub Desktop.
quick binary for creating MEM jira tickets
require './rebase-or-no/lib/kjira4r'
release = ARGV.shift
env = ARGV.shift
j = KJira4R.new(USER, PASS)
mem8928 = j.getIssue("MEM-8928") # A standard "Install KC x on KC y" ticket
new_issue = mem8928.dup # Cloning for ease in custom fields, components, etc.
new_issue.created=nil
new_issue.description = <<DESC
Please install KC #{release} on KC #{env} with the following commands, as tomcat:
rpm -Uhv --force --nodeps /mosaic/data/KITT/kfc/RPMS/noarch/kuali-coeus-#{release}.noarch.rpm
rpm -Uhv --force --nodeps /mosaic/data/KITT/kfc/RPMS/noarch/kuali-coeus-settings-#{env.downcase}-#{release}.noarch.rpm
Then restart tomcat.
Thanks much.
DESC
new_issue.key=nil
new_issue.id=nil
new_issue.summary="Install KC #{release} on KC #{env}"
new_issue.updated=nil
j.createIssue(new_issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment