...
Create Local instance.
Map Local instance to DEV environment.
Make sure to map LOCALHOST endpoint to LOCAL - DEV environment instance.
...
Workflow code in
...
YAML (
...
8.0 onwards)
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <ns0:WorkFlow xmlns:ns1="http://flexagon.com/flexdeploy/workflow/common" xmlns:ns0="http://flexagon.com/flexdeploy/workflow"> <ns1:Name>Export on FlexDeploy Server</ns1:Name> <ns1:Description>This is useful when there is no Git on development server to perform build.</ns1:Description> <ns0:Steps> <ns0:Step> <ns1:Name>Clone on FlexDeploy Server</ns1:Name> <ns1:StepId>1</ns1:StepId> name: Export on FlexDeploy Server description: This is useful when there is no Git on development server to perform build. steps: - id: '1' name: Clone on FlexDeploy Server type: INVOKE_PLUGIN data: pluginName: FlexagonGITPlugin pluginOperation: cloneProjectSources endpointInstanceOverride: value: LOCAL isExpression: false consumesArtifacts: false producesArtifacts: false endpointSelection: choice: All endpointExecution: choice: Any stopOnError: false inputs: [ ] outputs: [ ] userInputs: [ ] userOutputs: [ ] - <ns0id:InvokePlugin> '2' name: Copy to Transfer on FlexDeploy Server <ns0:PluginName>FlexagonGITPlugin</ns0:PluginName>type: INVOKE_PLUGIN data: pluginName: FlexagonShellPlugin <ns0pluginOperation:PluginOperation>cloneProjectSources</ns0:PluginOperation> execute endpointInstanceOverride: <ns0:EndpointInstanceOverride>LOCAL</ns0value:EndpointInstanceOverride> LOCAL <ns0:consumesArtifacts>false</ns0:consumesArtifacts> isExpression: false consumesArtifacts: false <ns0producesArtifacts:producesArtifacts>false</ns0:producesArtifacts> false endpointSelection: <ns0choice:PluginInputs/> All endpointExecution: <ns0choice:UserInputs/> Any stopOnError: false <ns0inputs:PluginOutputs/> - name: FDSHELL_INP_CODE_SNIPPET <ns0value:UserOutputs/> </ns0value:InvokePlugin> |- </ns0:Step> <ns0:Step>cd $FD_TEMP_DIR <ns1:Name>Copy to Transfer on FlexDeploy Server</ns1:Name>cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER $JAVA_HOME/bin/jar <ns1:StepId>2</ns1:StepId> -cvfM $FD_TRANSFER_DIR/transfer.jar * <ns0isExpression:InvokePlugin> false isEncrypted: false <ns0:PluginName>FlexagonShellPlugin</ns0:PluginName> - name: FDSHELL_INP_STOP_ON_ERROR <ns0:PluginOperation>execute</ns0:PluginOperation>value: value: 'true' <ns0:EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride> isExpression: false <ns0isEncrypted:consumesArtifacts>false</ns0:consumesArtifacts> false - name: FDSHELL_INP_DISABLE_ECHO <ns0:producesArtifacts>false</ns0:producesArtifacts> value: value: 'false' <ns0:EndpointSelection> isExpression: false <ns0isEncrypted:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice> false - name: FDSHELL_INP_RESTRICT_ENVIRONMENT </ns0:EndpointSelection> value: isExpression: false <ns0:EndpointExecutionChoice>Any</ns0:EndpointExecutionChoice> isEncrypted: false - <ns0:PluginInputs>name: FDSHELL_INP_NO_SECURE_VARIABLES value: <ns0value:PluginInput> 'false' isExpression: false <ns0:Name>FDSHELL_INP_CODE_SNIPPET</ns0:Name> isEncrypted: false outputs: [ ] <ns0:ValueType>Text</ns0:ValueType>userInputs: [ ] userOutputs: [ <ns0:Encrypted>false</ns0:Encrypted> ] - id: '3' name: Copy to Temp on Endpoint type: INVOKE_PLUGIN <ns1data:Type>String</ns1:Type> pluginName: FlexagonShellPlugin pluginOperation: execute <ns0endpointInstanceOverride:Text>cd $FD_TEMP_DIR cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER $JAVA_HOME/bin/jar -cvfM $FD_TRANSFER_DIR/transfer.jar *</ns0:Text> value: SOAHR isExpression: false consumesArtifacts: false </ns0:PluginInput> producesArtifacts: false endpointSelection: <ns0choice:PluginInput> All endpointExecution: choice: Any <ns0:Name>FDSHELL_INP_STOP_ON_ERROR</ns0:Name> stopOnError: false inputs: - name: FDSHELL_INP_CODE_SNIPPET <ns0:ValueType>Text</ns0:ValueType> value: value: |- <ns0:Encrypted>false</ns0:Encrypted> cd $FD_TEMP_DIR <ns1:Type>Boolean</ns1:Type> mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER <ns0:Text>true</ns0:Text> $JAVA_HOME/bin/jar -xvf $FD_TRANSFER_DIR/transfer.jar </ns0isExpression:PluginInput> false isEncrypted: false - <ns0name:PluginInput> FDSHELL_INP_STOP_ON_ERROR value: <ns0:Name>FDSHELL_INP_DISABLE_ECHO</ns0:Name> value: 'true' isExpression: false <ns0:ValueType>Text</ns0:ValueType> isEncrypted: false - name: FDSHELL_INP_DISABLE_ECHO value: <ns0:Encrypted>false</ns0:Encrypted> value: 'false' isExpression: false <ns1:Type>Boolean</ns1:Type> isEncrypted: false - name: FDSHELL_INP_RESTRICT_ENVIRONMENT <ns0:Text>false</ns0:Text>value: isExpression: false </ns0isEncrypted:PluginInput> false - name: FDSHELL_INP_NO_SECURE_VARIABLES <ns0value:PluginInput> value: 'false' <ns0:Name>FDSHELL_INP_RESTRICT_ENVIRONMENT</ns0:Name> isExpression: false isEncrypted: false outputs: [ ] <ns0:ValueType>Text</ns0:ValueType>userInputs: [ ] userOutputs: [ ] |
 Workflow code in XML (prior to 8.0)
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <ns0:Encrypted>false</ns0:Encrypted>WorkFlow xmlns:ns1="http://flexagon.com/flexdeploy/workflow/common" xmlns:ns0="http://flexagon.com/flexdeploy/workflow"> <ns1:Name>Export on FlexDeploy Server</ns1:Name> <ns1:Type>String</ns1:Type>Description>This is useful when there is no Git on development server to perform build.</ns0ns1:PluginInput>Description> <ns0:Steps> <ns0:Step> <ns0:PluginInput> <ns1:Name>Clone on FlexDeploy Server</ns1:Name> <ns0:Name>FDSHELL_INP_NO_SECURE_VARIABLES</ns0:Name><ns1:StepId>1</ns1:StepId> <ns0:InvokePlugin> <ns0:ValueType>Text<PluginName>FlexagonGITPlugin</ns0:ValueType> PluginName> <ns0:Encrypted>false<PluginOperation>cloneProjectSources</ns0:Encrypted>PluginOperation> <ns1:Type>Boolean</ns1:Type><ns0:EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride> <ns0:Text>false<consumesArtifacts>false</ns0:Text>consumesArtifacts> <<ns0:producesArtifacts>false</ns0:PluginInput>producesArtifacts> </ns0:PluginInputs><ns0:PluginInputs/> <ns0:UserInputs/> <ns0:PluginOutputs/> <ns0:UserOutputs/> </ns0:InvokePlugin> </ns0:Step> <ns0:Step> <ns1:Name>Copy to TempTransfer on FlexDeploy Endpoint<Server</ns1:Name> <ns1:StepId>3<StepId>2</ns1:StepId> <ns0:InvokePlugin> <ns0:PluginName>FlexagonShellPlugin</ns0:PluginName> <ns0:PluginOperation>execute</ns0:PluginOperation> <ns0:EndpointInstanceOverride>SOAHR<EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride> <ns0:consumesArtifacts>false</ns0:consumesArtifacts> <ns0:producesArtifacts>false</ns0:producesArtifacts> <ns0:EndpointSelection> <ns0:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice> </ns0:EndpointSelection> <ns0:EndpointExecutionChoice>Any</ns0:EndpointExecutionChoice> <ns0:PluginInputs> <ns0:PluginInput> <ns0:Name>FDSHELL_INP_CODE_SNIPPET</ns0:Name> <ns0:ValueType>Text</ns0:ValueType> <ns0:Encrypted>false</ns0:Encrypted> <ns1:Type>String</ns1:Type> <ns0:Text>cd $FD_TEMP_DIR mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER_TEMP_DIR cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER $JAVA_HOME/bin/jar -xvfcvfM $FD_TRANSFER_DIR/transfer.jar<jar *</ns0:Text> </ns0:PluginInput> <ns0:PluginInput> <ns0:Name>FDSHELL_INP_STOP_ON_ERROR</ns0:Name> <ns0:ValueType>Text</ns0:ValueType> <ns0:Encrypted>false</ns0:Encrypted> <ns1:Type>Boolean</ns1:Type> <ns0:Text>true</ns0:Text> </ns0:PluginInput> <ns0:PluginInput> <ns0:Name>FDSHELL_INP_DISABLE_ECHO</ns0:Name> <ns0:ValueType>Text</ns0:ValueType> <ns0:Encrypted>false</ns0:Encrypted> <ns1:Type>Boolean</ns1:Type> <ns0:Text>false</ns0:Text> </ns0:PluginInput> <ns0:PluginInput> <ns0:Name>FDSHELL_INP_RESTRICT_ENVIRONMENT</ns0:Name> <ns0:ValueType>Text</ns0:ValueType> <ns0:Encrypted>false</ns0:Encrypted> <ns1:Type>String</ns1:Type> </ns0:PluginInput> <ns0:PluginInput> <ns0:Name>FDSHELL_INP_NO_SECURE_VARIABLES</ns0:Name> <ns0:ValueType>Text</ns0:ValueType> <ns0:Encrypted>false</ns0:Encrypted> <ns1:Type>Boolean</ns1:Type> <ns0:Text>false</ns0:Text> </ns0:PluginInput> </ns0:PluginInputs> <ns0:UserInputs/> <ns0:PluginOutputs/> <ns0:UserOutputs/> </ns0:InvokePlugin> </ns0:Step> </ns0:Steps> </ns0:WorkFlow> |
Here is workflow code in YAML(8.0 onwards)
Code Block |
---|
name: Export on FlexDeploy Server description: This is useful when there is no Git on<ns0:Step> development server to perform build. steps: - id<ns1:Name>Copy '1'to Temp on name: Clone on FlexDeploy ServerEndpoint</ns1:Name> type: INVOKE_PLUGIN data: <ns1:StepId>3</ns1:StepId> pluginName: FlexagonGITPlugin pluginOperation<ns0:InvokePlugin> cloneProjectSources endpointInstanceOverride: value: LOCAL<ns0:PluginName>FlexagonShellPlugin</ns0:PluginName> isExpression: false consumesArtifacts: false<ns0:PluginOperation>execute</ns0:PluginOperation> producesArtifacts: false endpointSelection<ns0:EndpointInstanceOverride>SOAHR</ns0:EndpointInstanceOverride> choice: All endpointExecution: <ns0:consumesArtifacts>false</ns0:consumesArtifacts> choice: Any stopOnError: false<ns0:producesArtifacts>false</ns0:producesArtifacts> inputs: [ <ns0:EndpointSelection> ] outputs: [ ] userInputs: [<ns0:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice> ] userOutputs</ns0:EndpointSelection> [ ] - id: '2' name: Copy to Transfer on FlexDeploy Server<ns0:EndpointExecutionChoice>Any</ns0:EndpointExecutionChoice> type: INVOKE_PLUGIN data<ns0:PluginInputs> pluginName: FlexagonShellPlugin pluginOperation: execute endpointInstanceOverride<ns0: PluginInput> value: LOCAL isExpression: false consumesArtifacts: false<ns0:Name>FDSHELL_INP_CODE_SNIPPET</ns0:Name> producesArtifacts: false endpointSelection: choice: All <ns0:ValueType>Text</ns0:ValueType> endpointExecution: choice: Any stopOnError: false<ns0:Encrypted>false</ns0:Encrypted> inputs: - name: FDSHELL_INP_CODE_SNIPPET value: <ns1:Type>String</ns1:Type> value: |- cd<ns0:Text>cd $FD_TEMP_DIR mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER $JAVA_HOME/bin/jar -cvfMxvf $FD_TRANSFER_DIR/transfer.jar * isExpression: false isEncrypted: false - name: FDSHELL_INP_STOP_ON_ERRORjar</ns0:Text> value: value</ns0: 'true'PluginInput> isExpression<ns0:PluginInput> false isEncrypted: false - name<ns0: FDSHELLName>FDSHELL_INP_STOP_DISABLE_ECHOON_ERROR</ns0:Name> value: value<ns0:ValueType>Text</ns0:ValueType> 'false' isExpression: false isEncrypted: false<ns0:Encrypted>false</ns0:Encrypted> - name: FDSHELL_INP_RESTRICT_ENVIRONMENT value: <ns1:Type>Boolean</ns1:Type> isExpression: false isEncrypted: false - name: FDSHELL_INP_NO_SECURE_VARIABLES<ns0:Text>true</ns0:Text> value: value</ns0:PluginInput> 'false' isExpression: false isEncrypted<ns0:PluginInput> false outputs: [ ] userInputs: [<ns0:Name>FDSHELL_INP_DISABLE_ECHO</ns0:Name> ] userOutputs: [ <ns0:ValueType>Text</ns0:ValueType> ] - id: '3' name: Copy to Temp on Endpoint type: INVOKE_PLUGIN <ns0:Encrypted>false</ns0:Encrypted> data: pluginName: FlexagonShellPlugin pluginOperation: execute endpointInstanceOverride<ns1:Type>Boolean</ns1:Type> value: SOAHR isExpression: false consumesArtifacts: false<ns0:Text>false</ns0:Text> producesArtifacts: false endpointSelection: </ns0:PluginInput> choice: All endpointExecution: choice<ns0:PluginInput> Any stopOnError: false inputs: - name: FDSHELL<ns0:Name>FDSHELL_INP_CODE_SNIPPET value: RESTRICT_ENVIRONMENT</ns0:Name> value: |- cd $FD_TEMP_DIR<ns0:ValueType>Text</ns0:ValueType> mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER <ns0:Encrypted>false</ns0:Encrypted> cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER $JAVA_HOME/bin/jar -xvf $FD_TRANSFER_DIR/transfer.jar <ns1:Type>String</ns1:Type> isExpression: false isEncrypted</ns0:PluginInput> false - name: FDSHELL_INP_STOP_ON_ERROR value<ns0:PluginInput> value: 'true' isExpression: false<ns0:Name>FDSHELL_INP_NO_SECURE_VARIABLES</ns0:Name> isEncrypted: false - name: FDSHELL_INP_DISABLE_ECHO<ns0:ValueType>Text</ns0:ValueType> value: value: 'false' <ns0:Encrypted>false</ns0:Encrypted> isExpression: false isEncrypted: false <ns1:Type>Boolean</ns1:Type> - name: FDSHELL_INP_RESTRICT_ENVIRONMENT value: isExpression: false<ns0:Text>false</ns0:Text> isEncrypted: false - name: FDSHELL_INP_NO_SECURE_VARIABLES</ns0:PluginInput> value: </ns0:PluginInputs> value: 'false' isExpression<ns0: falseUserInputs/> isEncrypted: false<ns0:PluginOutputs/> outputs: [ <ns0:UserOutputs/> ] userInputs</ns0:InvokePlugin> [ </ns0:Step> ] userOutputs: [ </ns0:Steps> </ns0:WorkFlow> ] |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...