memo; git-plugin Repository URL と Credential

Given

  • Jenkins に
    • git-plugin を入れている
    • credential-plugin を入れている
    • Jenkins_ROOT > ジョブリストのリンク > 設定 > ソースコード管理 > Git に遷移している

Repository-URL とは

  • git clone で checkout する時の URL
    • ssh 使うなら git@github.com:USER_NAME/REPO_NAME
    • https でもいいなら https://github.com/USER_NAME/REPO_NAME

Credential とは

  • 認証情報 のこと
    • github 使うときは ユーザー名とパスワードの設定すればよい
      • pull/push するならば グローバルドメイン で設定
    • ssh や 署名 設定については何に対して使うのか未検証