注記
このプロジェクトの積極的な開発は、Phectecthq/Phect内で移動しました。コードはこちらとドキュメントをこちらをご覧ください。このリポジトリの代わりに、PrechectHQ/Phectに対して問題とPRSを開いてください。
Bitbucketリポジトリを操作するための知事統合。
Python 3.7+のインストールが必要です。
Pipenv、Conda、VirtualenvなどのPython Virtual Environment Managerを使用することをお勧めします。
これらのタスクは、Phectect 2.0で動作するように設計されています。知事の使用方法の詳細については、知事のドキュメントを参照してください。
prefect-bitbucket
pip
にインストールします。
PIP Install Fechect-BitBucket
次に、登録して、知事クラウドのブロックを表示します。
Fechect block Register -M frecect_bitbucket
注意してください。ブロックでload
メソッドを使用するには、コードを介して保存するか、UIを介して保存されているブロックドキュメントを既に用意する必要があります。
知事からflomfolom fromfect_bitbucket.credentialsインポートBitbcucketcredentials@flowdef use_stored_bitbucket_creds_flow():bitbucket_credentials_block = bitbbucketcredentials.load( "block_name")return bitbucket_credention
知恵からflomfolom fromect_bitbucket.credentialsインポートBitbbucketcredentials@flowdef create_new_bitbucket_creds_flow():bitbucket_credentials_block = bitbbucketcredentials(token = "my-token"、username = "
fromect_bitbucketからインポートBitbucketrepositorypublic_repo = "https://bitbucket.org/my-workspace/my-repository.git"#エース(inブロックタブ)public_bitbucket_block.save( "mybitbucket-block")
Fromect_bitbucketからインポートBitbucketrepositorypublic_repo = "https://bitbucket.org/my-workspace/my-repository.git"#は、パブリックビットバケットリポジトリリポジトリBitbucketrepository blockbranch_bitbucket_block = bitbucketrepository(my-bucker-tag" Master "repository = public_repo)#bitbucketrepositoryブロックをお客様のワークスペースに保存(ブロックタブ)branch_bitbucket_block.save(" my-bitbucket-branch-block ")
fromect_bitbucketのインポートビットバッケットクレデンシャル、bitbucketrepository#プライベートリポジトリの場合、itbitbucket_credentials_block = bitbbucketcredentials(token = "my-token"、username = "my-username"#オプション)にアクセスする必要があります。ブロックタブ)bitbucket_credentials_block.save(name = "mybitbucket-credentials-block") bitbucketrepository(repository = private_repo、bitbucket_credentials = bitbucket_credentials_block)
fromect_bitbucketからbitbucketcredentials、bitbucketrepository#bitbbittcredentials blockbucketcredentials.load( "mybitbucket-credentials-block")をロードしますオリ.git "private_bitbucket_block = bitbucketrepository(repository = private_repo、bitbucket_credentials = bitbucket_credentials_block)
!!!情報「BitbucketサーバーとBitBucket Cloudの違い」
For Bitbucket Cloud, only set the `token` to authenticate. For Bitbucket Server, set both the `token` and the `username`.
prefect-bitbucket
使用しているときにバグが発生した場合は、Bitbitbucket Phitbucketリポジトリで問題を自由に開いてください。
prefect-bitbucket
使用している間に質問や問題がある場合は、長官の談話フォーラムまたは知事のスラックコミュニティのいずれかでヘルプを見つけることができます。
お気軽にするまで、またはprefect-bitbucket
情報をお楽しみください!
開発用のprefect-bitbucket
のバージョンをインストールしたい場合は、リポジトリをクローンして、 pip
で編集可能なインストールを実行します。
git clone https://github.com/prefecthq/prefect-bitbucket.gitcd fefectbitbucket/ pip install -e "。[dev]"#インストールリント前fookspre-commitインストールをインストールします