LoginSignup
0
0

Bitbucket Pipelinesでgit cloneする

Posted at

前提

走り書きです。
スクショやbitbucket-pipelines.ymlの書き方はまた追々…

  • リポジトリA
  • リポジトリB
    の2つのリポジトリがあり、リポジトリAでPipelinesを実行するときに、リポジトリBをcloneしたい。
    (sub-modulesでの利用ではなく)

リポジトリAの設定

  1. リポジトリの設定/パイプライン/設定 ページへ
  2. Enable Pipelinesを有効にする
  3. リポジトリの設定/パイプライン/SSH Keys ページへ
  4. Generate Keys ボタンを押下して生成
  5. Copy public key ボタンを押下してコピーする

リポジトリBの設定

  1. リポジトリの設定/セキュリティ/アクセスキー ページへ
  2. Add key ボタンを押下しコピーした公開鍵を貼り付け、labelpipelinesなどとして、Add SSH keyを押下

リポジトリAでPipelinesを実行

無事cloneできる

0
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
0
0