queryWorkItems@0 - 查詢工作專案 v0 工作

在發行管線的 無代理程式 作業中使用這項工作,以確保工作專案查詢所傳回的相符專案數目在設定的閾值內。

只能在發行管線的 無代理程式 作業中使用。

Syntax

# Query work items v0
# Execute a work item query and check the number of items returned.
- task: queryWorkItems@0
  inputs:
    queryId: # string. Required. Query. 
    maxThreshold: '0' # string. Required. Upper threshold. Default: 0.
  # Advanced
    minThreshold: '0' # string. Required. Lower threshold. Default: 0.
# Query Work Items v0
# Executes a work item query and checks for the number of items returned.
- task: queryWorkItems@0
  inputs:
    queryId: # string. Required. Query. 
    maxThreshold: '0' # string. Required. Upper threshold. Default: 0.
  # Advanced
    minThreshold: '0' # string. Required. Lower threshold. Default: 0.

輸入

queryId - 查詢
string. 必要。

指定要在目前專案中執行的已儲存工作專案查詢。 可以是內建或自訂查詢。


maxThreshold - 上限閾值
string. 必要。 預設值:0

指定查詢中相符工作專案的數目上限。


minThreshold - 較低的臨界值
string. 必要。 預設值:0

指定查詢中相符的工作專案數目下限。


工作控制選項

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

輸出變數

無。

備註

在發行管線的 無代理程式作業 中使用這項工作,以確保工作專案查詢所傳回的相符專案數目在設定的閾值內。

注意

此工作只能在發行管線的 無代理程式作業 中使用。

如果 _minimum-threshold_< =_#-matching-workitems_< =_maximum-threshold_ ,此工作會成功。

如需使用此工作的詳細資訊,請參閱 核准和閘道概觀

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
執行于 Server、ServerGate
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
Settable 變數 任意
代理程式版本 所有支援的代理程式版本。
工作類別 公用程式