2016-08-03 35 views

回答

0

不幸的是,您不能引用該名稱。您可以使用表達式@pipelineId來引用管道標識。例如,您可以定義一個ShellCommandActivity來打印管道ID:

{ 
    "id": "ExampleActivity", 
    "name": "ExampleActivity", 
    "runsOn": { "ref": "SomeEc2Resource" }, 
    "type": "ShellCommandActivity", 
    "command": "echo \"Hello from #{@pipelineId}\"" 
}