0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Azure Pipelines でハマった話

Posted at

Python パッケージを Azure Artifacts フィードにアップロードしようとしてハマった話を一つ。

Azure Pipelines から Python パッケージをアップロードするには、

- task: TwineAuthenticate@1
  inputs:
    artifactFeed: FEED
- script: |
   python -m twine upload -r FEED --config-file $(PYPIRC_PATH) dist/*

のようなステップを書くと説明されているのですが、 Azure Artifacts に新たに作成するフィードは、これを書いている時点で、すべてプロジェクトスコープ フィード (project-scoped feeds) になっていて、

- task: TwineAuthenticate@1
  inputs:
    artifactFeed: PROJECT/FEED

とプロジェクト名を指定する必要があったわけです。これが分かるまで何度も試行錯誤を繰り返してしまいました。

現実的には、次のように変数参照にするのが便利だと思いますね。

- task: TwineAuthenticate@1
  inputs:
    artifactFeed: $(System.TeamProject)/FEED
0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?