Creates a local file using given contents and permissions.
Inputs
Input Name | Input Code | Required | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Contents |
| Yes | The content to be placed into the newly created file. FlexDeploy property replacement can be used in the file content. For example: Contents
| ||||||
File Path |
| Yes | Full file path (including name) of the file to create. You can easily save to artifacts by using the following groovy snippet: File Path
Remember to check 'Produces Artifacts' if you want to save artifacts | ||||||
Overwrite Existing File |
| Yes | If the file specified in the File Path input exists, should it be overwritten? If the file exists and this is false then an exception will be thrown. | ||||||
Owner Permissions |
| Yes | The owner permissions to give the file. Defaults to 'Read, Write, and Execute'. | ||||||
Other User Permissions |
| Yes | Other user permissions to give the file. Defaults to readonly. |
Artifacts
This operation delegates the consumes/produces artifacts decision to the workflow developer. Check Consumes Artifacts on the workflow step editor if this operation requires artifacts to be delivered prior to execution of the script. Check Produces Artifacts on the workflow step editor if this operation creates artifacts. The artifacts folder is available via the FD_ARTIFACTS_DIR
variable.
Endpoint Selection
This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the target. Selecting a specific resource will result in selection of endpoints associated to the target which have that resource defined.
Endpoint Execution
This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.