Fix task result syntax in workflows used for functional tests
Change-Id: I5ef1659f2cbf7f2234c51b57d0bf161d03acb178
This commit is contained in:
		@@ -6,8 +6,9 @@ name: wb
 | 
				
			|||||||
workflows:
 | 
					workflows:
 | 
				
			||||||
  wf1:
 | 
					  wf1:
 | 
				
			||||||
    type: direct
 | 
					    type: direct
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tasks:
 | 
					    tasks:
 | 
				
			||||||
      hello:
 | 
					      hello:
 | 
				
			||||||
        action: std.echo output="Hello"
 | 
					        action: std.echo output="Hello"
 | 
				
			||||||
        publish:
 | 
					        publish:
 | 
				
			||||||
            result: <% $.hello %>
 | 
					          result: <% task(hello).result %>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,4 +12,4 @@ workflows:
 | 
				
			|||||||
      hello:
 | 
					      hello:
 | 
				
			||||||
        action: std.echo output="Hello"
 | 
					        action: std.echo output="Hello"
 | 
				
			||||||
        publish:
 | 
					        publish:
 | 
				
			||||||
          result: <% $.hello %>
 | 
					          result: <% task(hello).result %>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ wf:
 | 
				
			|||||||
    hello:
 | 
					    hello:
 | 
				
			||||||
      action: std.echo output="Hello"
 | 
					      action: std.echo output="Hello"
 | 
				
			||||||
      publish:
 | 
					      publish:
 | 
				
			||||||
        result: <% $.hello %>
 | 
					        result: <% task(hello).result %>
 | 
				
			||||||
      wait-after: 1
 | 
					      wait-after: 1
 | 
				
			||||||
      on-success:
 | 
					      on-success:
 | 
				
			||||||
        - task2
 | 
					        - task2
 | 
				
			||||||
@@ -17,4 +17,4 @@ wf:
 | 
				
			|||||||
    task2:
 | 
					    task2:
 | 
				
			||||||
      action: std.echo output="Task 2"
 | 
					      action: std.echo output="Task 2"
 | 
				
			||||||
      publish:
 | 
					      publish:
 | 
				
			||||||
        task2: <% $.task2 %>
 | 
					        task2: <% task(task2).result %>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,4 +8,4 @@ wf_single:
 | 
				
			|||||||
    hello:
 | 
					    hello:
 | 
				
			||||||
      action: std.echo output="Hello"
 | 
					      action: std.echo output="Hello"
 | 
				
			||||||
      publish:
 | 
					      publish:
 | 
				
			||||||
        result: <% $.hello %>
 | 
					        result: <% task(hello).result %>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ wf:
 | 
				
			|||||||
      action: std.echo output="Hello"
 | 
					      action: std.echo output="Hello"
 | 
				
			||||||
      wait-before: 5
 | 
					      wait-before: 5
 | 
				
			||||||
      publish:
 | 
					      publish:
 | 
				
			||||||
        result: <% $.hello %>
 | 
					        result: <% task(hello).result %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wf1:
 | 
					wf1:
 | 
				
			||||||
  type: reverse
 | 
					  type: reverse
 | 
				
			||||||
@@ -21,7 +21,7 @@ wf1:
 | 
				
			|||||||
    addressee:
 | 
					    addressee:
 | 
				
			||||||
      action: std.echo output="John"
 | 
					      action: std.echo output="John"
 | 
				
			||||||
      publish:
 | 
					      publish:
 | 
				
			||||||
        name: <% $.addressee %>
 | 
					        name: <% task(addressee).result %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    goodbye:
 | 
					    goodbye:
 | 
				
			||||||
      action: std.echo output="<% $.farewell %>, <% $.name %>"
 | 
					      action: std.echo output="<% $.farewell %>, <% $.name %>"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user