我尝试创建一个构建管道,用于将我的 python 包上传到 Azure DevOps Artifact Feed。使用我的默认提要,使用此 yaml 可以正常工作
- script: |
python setup.py sdist
displayName: 'Make sdist'
- script: |
python setup.py bdist_wheel --universal
displayName: 'Make wheel'
- task: TwineAuthenticate@1
inputs:
artifactFeed: christophhaene
- script: |
cat $(PYPIRC_PATH)
displayName: 'see file'
- script: |
python -m twine upload -r 'christophhaene' --config-file $(PYPIRC_PATH) dist/* --verbose
现在我想更改提要。为此,我在一个名为 sftp 的 DevOps 项目调用 sftp 中创建了一个新的提要。如果我现在像这样更改 yaml:
- task: TwineAuthenticate@1
inputs:
artifactFeed: sftp
- script: |
python -m twine upload -r 'sftp' --config-file $(PYPIRC_PATH) dist/* --verbose
我在麻线上传部分收到以下错误代码:
[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d8fc4191-edad-4b2c-9393-3e3ddbf716f2.sh
Uploading distributions to https://pkgs.dev.azure.com/christophhaene/_packaging/sftp/pypi/upload
Uploading sftp-0.1.1-py2.py3-none-any.whl
0%| | 0.00/4.43k [00:00<?, ?B/s]
100%|██████████| 4.43k/4.43k [00:00<00:00, 49.8kB/s]HTTPError: 404 Client Error: Not Found - The feed with ID 'sftp' doesn't exist. (DevOps Activity ID: B2DC0264-1FC0-460B-849E-3D77F371E984) for url: https://pkgs.dev.azure.com/christophhaene/_packaging/sftp/pypi/upload
Content received from server:
{"$id":"1","innerException":null,"message":"The feed with ID 'sftp' doesn't exist.","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedIdNotFoundException, Microsoft.VisualStudio.Services.Feed.WebApi","typeKey":"FeedIdNotFoundException","errorCode":0,"eventId":3000}
##[error]Bash exited with code '1'.
任何想法?
非常感谢克里斯托夫