Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Creates a local file using given contents and permissions. 

Inputs

Input Name

Input Code

Required

Description

Contents

FDFILE_INP_CREATE_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
Code Block
languagetext
Hello world! 
I am a file created in the ${{FD_ENVIRONMENT_CODE}} environment.

File Path

FDFILE_INP_CREATE_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
Code Block
languagegroovy
FD_ARTIFACTS_DIR + "/myFile.txt"

Remember to check 'Produces Artifacts' if you want to save artifacts

Overwrite Existing File

FDFILE_INP_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

FDFILE_INP_OWNER_PERMISSIONS

Yes

The owner permissions to give the file. Defaults to 'Read, Write, and Execute'.

Other User Permissions

FDFILE_INP_USER_PERMISSIONS

Yes

Other user permissions to give the file. Defaults to readonly. 

...

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 environment instancetarget. Selecting a specific resource will result in selection of endpoints associated to the environment instance target which have that resource defined.

...