deploySalesforceSFDX

Deploys a Salesforce artifact to a Salesforce Organization or sandbox using the Salesforce CLI. This plugin operation requires sfdx to be installed on the endpoint where the project will be executed.

Supports both Full and Partial Deploy projects. Deploys a FlexDeploy Salesforce zip file from the FD_ARTIFACTS_DIR. This file must have been created by the BuildSalesforce operation.


Environment/Instance Properties

Property Name

Property Code

Required

Description

Salesforce Account Code

FDSF_ACCOUNT_CODE

Yes

Salesforce Account with all the required properties like User, Password, Client Id, etc
Salesforce HTTPS protocolFDSF_HTTPS_PROTOCOLNoThe HTTPS protocol to use to secure the connection. Defaults to TLSv1.2. Used only in the case when username and password are provided in the cloud account

  

Cloud Account Properties

Property Name

Property Code

Required

Description

Salesforce User Email

FDSFCA_USER

Yes

Authentication User Email

Salesforce PasswordFDSFCA_PASSWORDNo

The Salesforce password for Salesforce User

If you are using a security token, paste the 25-digit token value to the end of your password

If you don't know the security token, see http://salesforce.stackexchange.com/questions/95259/where-is-reset-security-token-option-in-salesforce

JWT Key FileFDSFCA_SERVER_KEY_FILENoPath to a file containing the private key
Client IdFDSFCA_CLIENT_IDNoOAuth client ID (sometimes called the consumer key)
Development Org TypeFDSFCA_ORG_TYPENoEnter Org type for Development Environment. Eg: Sandbox or DevHub or Developer
Salesforce URLFDSFCA_URLNoThe login URL of the instance the org lives on
Sandbox NameFDSFCA_SANDBOXNoThe name of a Sandbox to access

Project Properties

Property Name

Property Code

Required

Description





  

Inputs

Input Name

Input Code

Required

Description

Check OnlyFDSF_INP_CLI_CHECK_ONLYNoCheck to only validate the deployment. Uncheck to complete the deployment normally. Uses the "–checkonly" parameter while executing the command

  

Outputs

Output Name

Required

Description

FDSF_DEPLOYMENT_ID

No

Outputs the deployment id so that it can be used in other operations or to look up the status of the deployment in the Salesforce UI

FDSF_OUT_NUMBERTESTFAILNoNumber Test cases Fail
FDSF_OUT_NUMBERTESTSUCCESSNoNumber Test cases Success
FDSF_OUT_NUMBERTESTRUNNoNumber Test cases Run
FDSF_OUT_TESTPERCENTAGENoTest Percentage
FDSF_OUT_CODECOVERAGEPERCENTAGENoCode Coverage Percentage

  

Artifacts 

This operation consumes artifacts from the artifacts repository.

Endpoint Selection

This operation will select all available endpoints associated to the environment/instance.


Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.



The following macros are not currently supported in the footer:
  • style