TwineAuthenticate@0 - Python 對應項上傳驗證 v0 工作

PYPIRC_PATH提供 twine 建置範圍的環境變數認證。 這可讓您從組建將 Python 套件發佈至摘要 twine

Syntax

# Python twine upload authenticate v0
# Authenticate for uploading Python distributions using twine. Add '-r FeedName/EndpointName --config-file $(PYPIRC_PATH)' to your twine upload command. For feeds present in this organization, use the feed name as the repository (-r). Otherwise, use the endpoint name defined in the service connection.
- task: TwineAuthenticate@0
  inputs:
  # Feeds and Authentication
    #artifactFeeds: # string. Alias: feedList. My feeds (select below). 
    #externalFeeds: # string. Alias: externalSources. Feeds from external organizations. 
  # Advanced
    #publishPackageMetadata: true # boolean. Publish pipeline metadata. Default: true.
# Python Twine Upload Authenticate v0
# Authentication for uploading python distributions using twine. Please add "-r FeedName/EndpointName --config-file $(PYPIRC_PATH)" to your twine upload command. For feeds present in this organization use feed name as repository(-r) otherwise use the endpoint name defined in the service connection.
- task: TwineAuthenticate@0
  inputs:
  # Feeds and Authentication
    #artifactFeeds: # string. Alias: feedList. My feeds (select below). 
    #externalFeeds: # string. Alias: externalSources. Feeds from external organizations.

輸入

artifactFeeds - 我的摘要 (選取下方)
輸入別名: feedListstring.

指定要向對應項進行驗證的 Azure 成品摘要名稱。 驗證摘要必須存在於組織內。 針對專案範圍的摘要,請使用 語法 projectName/feedNameSelect


externalFeeds - 來自外部組織的摘要
輸入別名: externalSourcesstring.

來自外部組織的對應項 服務連線 名稱,以使用對應項進行驗證。 儲存在端點中的認證必須具有套件上傳許可權。


publishPackageMetadata - 發佈管線中繼資料
boolean. 預設值:true

將這個組建/發行管線的中繼資料關聯 (,例如執行 #,以及上傳至摘要時) 套件的原始程式碼資訊。


工作控制選項

除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制項選項和一般工作屬性

輸出變數

無。

備註

PYPIRC_PATH提供 twine 建置範圍的環境變數認證。 這可讓您從組建將 Python 套件發佈至摘要 twine

我的管線中何時應該執行這項工作?

此工作必須先執行,才能使用對應項將 Python 散發套件上傳至已驗證的套件來源,例如 Azure Artifacts。 沒有其他排序需求。 此工作的多個叫用不會堆疊認證。 每項工作執行都會清除任何先前儲存的認證。

我的代理程式位於 Web Proxy 後方。 TwineAuthenticate 是否會設定對應項以使用我的 Proxy?

不會。 雖然此工作本身會在 代理程式設定為使用之 Web Proxy後方運作,但不會將對應項設定為使用 Proxy。

我的管線需要存取不同專案中的摘要

如果管線在裝載摘要的專案不同的專案中執行,您必須設定其他專案,以授與建置服務的讀取/寫入存取權。 如需詳細資訊,請參閱 Azure Pipelines 中的套件許可權

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
執行于 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
Settable 變數 任意
代理程式版本 2.144.0 或更新版本
工作類別 套件
需求 描述
管線類型 YAML、傳統組建、傳統版本
執行于 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
Settable 變數 任意
代理程式版本 2.115.0 或更新版本
工作類別 套件