One story I was addicted to trying to upload a Python package to the Azure Artifacts feed.
To upload a Python package from Azure Pipelines
- task: TwineAuthenticate@1
inputs:
artifactFeed: FEED
- script: |
python -m twine upload -r FEED --config-file $(PYPIRC_PATH) dist/*
It is explained that you write steps like, but at the time of writing, all the feeds you create in Azure Artifacts are project-scoped feeds.
- task: TwineAuthenticate@1
inputs:
artifactFeed: PROJECT/FEED
It was necessary to specify the project name. I repeated trial and error many times until I understood this.
In reality, I think it is convenient to use variable references as follows.
- task: TwineAuthenticate@1
inputs:
artifactFeed: $(System.TeamProject)/FEED
Recommended Posts