Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
12
Help us understand the problem. What is going on with this article?
@kuchinashi_r

GitlabへpushしたのをトリガにJenkinsをビルドさせるも動かない件

More than 5 years have passed since last update.

GitlabへpushしたらJenkinsでビルドさせたい

@via http://qiita.com/garbagetown/items/fe055dcfd8e0c090e610

上記記事を参考にGitlabとJenkinsを連携させるも,どうもビルドが動作していない様子.

ログを確認

とりあえず生ビールのノリでとりあえずログ.
なんかでてた

Jun 17, 2014 9:27:04 AM WARNING hudson.security.csrf.CrumbFilter doFilter
No valid crumb was included in request for /gitlab/build_now. Returning 403.

Gitlabから /gitlab/build_now へのアクセスで,403が返されているらしい
上の行のログからCSRF対策でフィルタを掛けられてる(doFilter)のもわかる.

解決法

Jenkinsの管理 > グローバルセキュリティの設定 > CSRF対策 のチェックを外して適用.
で一応解決.GitlabからTest Hookするとビルドが走るはず.

でも,CSRF対策外しちゃっていいのかな…

12
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
kuchinashi_r
記事中に特に理が無ければ,各記事内のコードのライセンスは NYSL または Public Domain のどちらかお好きな方でどうぞ

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
12
Help us understand the problem. What is going on with this article?