LoginSignup
2
0

More than 5 years have passed since last update.

Jenkins GitLab Logo Plugin

Posted at

前置き

GitLabではGitHubと違いリポジトリごとにアイコンを設定することができます。

例: https://gitlab.com/gitlab-org

image

Jenkins GitLab Logo PluginはGitLabのリポジトリに設定されているロゴをJenkins上で表示するためのJenkinsプラグインです。

使い方

Global Configuration

APIのエンドポイントとトークンを設定

global-config.png

Job Configuration

表示したいリポジトリを設定

job-config.png

外見

こんな風にダッシュボードにGitLabで設定してるリポジトリのロゴが表示されます。

dashboard_1.0.2.png

ロゴをクリックすればリポジトリに遷移します

思い出:GitLabにプルリクを送った

GitLabのロゴ(avatar)自体は結構前からあったのですが、APIから取得する術がありませんでした。

Chrome GitLab Notifie でリポジトリ固有のロゴを表示したかったのと、今回のGitLab Logo Pluginを作りたかったため、APIで取得できるようにするためのプルリクエストを投げました。

Expose avatar_url in projects API by sue445 · Pull Request #8890 · gitlabhq/gitlabhq

プルリクは無事にマージされてv7.9.0に取り込まれています :triumph:

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0