Jenkins Github pluginを使いGithub Pushにフックさせる方法
Githubでpushしたら、Jenkins走らせたいよねってことで、、
http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html
ここの手順をふめばできます。一点ハマったのが、GitHub CredentialsのところがID/Passだとうまくいかなかった。Test Credentialボタンを押すと"Failed to validate the account" ってでてました。
そこで、OAuthを使えばできそうという情報がでてきたので,
GithubのAccount Setting -> Application -> Personal access tokens -> Generate New token でトークンを作成して、Jenkins -> GitHub Credentials -> OAuth tokenに入力。
これでうまくいきました。