You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloudBees CD DSL: Using ec-groovy to perform post processing
Step and process step definitions can include a post processing operation. This can be used to parse the output of the executed command and store the results to properies or used to set the step outcome. The command output which is sent to the log file is piped to the post processing command. The CloudBees CD command 'postp' is designed to be used in this way, where you provide this command some Perl code to do the customer processing. It is possible to use other commands as well. This example illustrates how to use an ec-groovy script to do the processing.
The first step in the example below creates the ec-groovy script. The second step is the one that generates output to be processed. In this example, each line of the command output is store to a job property (line0, line1, ...).