Rediger

Del via


ChefKnife@1 - Chef Knife v1 task

Run scripts with Knife commands on your Chef workstation.

Important

This task is deprecated and will be retired January 31, 2024. Use Chef knife client.

Run scripts with Knife commands on your Chef workstation.

Important

This task is deprecated. Use Chef knife client.

Syntax

# Chef Knife v1
# Run scripts with Knife commands on your Chef workstation.
- task: ChefKnife@1
  inputs:
    ConnectedServiceName: # string. Required. Chef Subscription. 
    ScriptPath: # string. Required. Script Path. 
    #ScriptArguments: # string. Script Arguments.
# Chef Knife v1
# Run Scripts with knife commands on your chef workstation.
- task: ChefKnife@1
  inputs:
    ConnectedServiceName: # string. Required. Chef Subscription. 
    ScriptPath: # string. Required. Script Path. 
    #ScriptArguments: # string. Script Arguments.

Inputs

ConnectedServiceName - Chef Subscription
string. Required.

The Chef subscription to configure before running knife commands.


ScriptPath - Script Path
string. Required.

The path of the script. This should be fully qualified path or a relative to the default working directory.


ScriptArguments - Script Arguments
string.

Optional. The additional parameters to pass to the script. Can be either ordinal or named parameters.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Important

This task is deprecated. Use Chef knife client.

Requirements

Requirement Description
Pipeline types YAML, Preview, Classic build
Runs on Agent
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: Chef, DotNetFramework
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 1.83.0 or greater
Task category Deploy