Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Last active August 29, 2015 14:02
Show Gist options
  • Save tuki0918/ce756bf5c18d83f72daf to your computer and use it in GitHub Desktop.
Save tuki0918/ce756bf5c18d83f72daf to your computer and use it in GitHub Desktop.
Hubot Hipchat Jenkins

hubotにデフォルトで用意されている「jenkins.coffee」を読込み


# vi hubot-scripts.json

["redis-brain.coffee", "jenkins.coffee"]

# vi run.sh

export HUBOT_JENKINS_URL="http://domain.com/jenkins"
export HUBOT_JENKINS_AUTH="userid:pass"

# Chat command

Commands:
  hubot jenkins b <jobNumber> - builds the job specified by jobNumber. List jobs to get number.
  hubot jenkins build <job> - builds the specified Jenkins job
  hubot jenkins build <job>, <params> - builds the specified Jenkins job with parameters as key=value&key2=value2
  hubot jenkins list <filter> - lists Jenkins jobs
  hubot jenkins describe <job> - Describes the specified Jenkins job
  hubot jenkins last <job> - Details about the last build for the specified Jenkins job

jenkinsにPlugin「HipChat Plugin」をインストール


# Jenkinsの管理 => システムの設定 => Global HipChat Notifier Settings

  • API Token ca311d9b28464g85a342e381b2d624
  • Room
  • Jenkins http://domain.com/jenkins/

# job: HipChat Notifications

  • Project Room Room Name
  • Start Notification v

# job: ビルド後の処理

  • HipChat Notifications
@tuki0918
Copy link
Author

@undefined が返ってきてるけど気にしない…orz

@tuki0918
Copy link
Author

msg.reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment