Project

General

Profile

Actions

Defect #1253

closed

Plugin can't show build result on issue page, when project uses git

Added by Toshiyuki Ando almost 10 years ago. Updated over 9 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Target version:
Start date:
07/15/2013
Due date:
% Done:

100%

Estimated time:

Description

Jenkins が返す xml の情報

  • changeSet にはリビジョンの情報はない
  • changeSet の子要素 kind が git の場合は git とみてよさそう。
  • リビジョンの情報は action 要素の子要素の中にある。
    • lastBuiltRevision の SHA1 がリビジョンの情報
    • build/action/lastBuiltRevision/SHA1

Redmine の changeset の情報

  • revision に git のリビジョンが入っている

SCMの種類によってこの辺変わりそうだ。

どうするか

  • SCMの種類を確認する
    • xpath => build/changeSet/kind
  • Subversion, Mercurial の場合はそのまま
  • Gitの場合は新しい処理
    • build/action/lastBuiltRevision/SHA1 を探して、リビジョンを取得する

今までしこしことxmlを解析してたけど、Xpath 使ってやったほうがいいんでないか?

Actions #1

Updated by Toshiyuki Ando almost 10 years ago

  • Description updated (diff)
Actions #2

Updated by Toshiyuki Ando almost 10 years ago

  • Target version set to 2.1.2
Actions #3

Updated by Toshiyuki Ando almost 10 years ago

  • Description updated (diff)
  • Assignee set to Toshiyuki Ando
Actions #4

Updated by Toshiyuki Ando almost 10 years ago

  • Description updated (diff)
Actions #5

Updated by Toshiyuki Ando almost 10 years ago

  • Description updated (diff)
Actions #6

Updated by Toshiyuki Ando over 9 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Toshiyuki Ando over 9 years ago

  • Status changed from 新規(New) to 終了(Closed)
Actions

Also available in: Atom PDF