Versions Compared

Key

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

...

The instructions assume that DEV is the environment Code that you are trying to build from. If you use another, then please use that instead.

Instructions

  1. Create Local instance.

  2. Map Local instance to DEV environment.

  3. Make sure to map LOCALHOST endpoint to LOCAL - DEV environment instance.

...

Workflow code in

...

YAML (

...

8.0 onwards)

Code Block
languagexml
themeRDark
<?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 name: Export on FlexDeploy Server
description: This is useful when there is no Git on development server to perform
  build.</ns1
steps:Description>
-   <ns0id:Steps> '1'
  name: Clone on <ns0:Step>FlexDeploy Server
  type: INVOKE_PLUGIN
  data:
 <ns1:Name>Clone on FlexDeploy Server</ns1pluginName:Name> FlexagonGITPlugin
    pluginOperation: cloneProjectSources
  <ns1:StepId>1</ns1:StepId>  endpointInstanceOverride:
      value: <ns0:InvokePlugin>LOCAL
      isExpression: false
    <ns0:PluginName>FlexagonGITPlugin</ns0consumesArtifacts:PluginName> false
    producesArtifacts: false
     <ns0:PluginOperation>cloneProjectSources</ns0:PluginOperation>endpointSelection:
      choice: All
    <ns0endpointExecution:EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride>
      choice: Any
    <ns0:consumesArtifacts>false</ns0:consumesArtifacts>  stopOnError: false
         <ns0:producesArtifacts>false</ns0:producesArtifacts>
inputs: [
      ]
    <ns0outputs:PluginInputs/> [
      ]
    <ns0userInputs:UserInputs/> [
      ]
    <ns0:PluginOutputs/>userOutputs: [
      ]
- id: '2'
  <ns0:UserOutputs/>
         </ns0:InvokePlugin>
 name: Copy to Transfer on FlexDeploy Server
  type: INVOKE_PLUGIN
  data:
    pluginName: FlexagonShellPlugin
    </ns0:Step>pluginOperation: execute
    endpointInstanceOverride:
    <ns0:Step>  value: LOCAL
      <ns1isExpression:Name>Copy false
to Transfer on FlexDeploy Server</ns1:Name>
         <ns1:StepId>2</ns1:StepId>
         <ns0:InvokePlugin>
            <ns0:PluginName>FlexagonShellPlugin</ns0:PluginName>
            <ns0:PluginOperation>execute</ns0:PluginOperation>
    consumesArtifacts: false
    producesArtifacts: false
    endpointSelection:
      choice: All
    endpointExecution:
      choice: Any
      stopOnError: false
    inputs:
    - name: FDSHELL_INP_CODE_SNIPPET
      value:
        value: |-
          cd $FD_TEMP_DIR
          cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
          $JAVA_HOME/bin/jar -cvfM $FD_TRANSFER_DIR/transfer.jar *
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_STOP_ON_ERROR
      value:
        value: 'true'
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_DISABLE_ECHO
      value:
        value: 'false'
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_RESTRICT_ENVIRONMENT
      value:
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_NO_SECURE_VARIABLES
      value:
        value: 'false'
        isExpression: false
      isEncrypted: false
    outputs: [
      ]
    userInputs: [
      ]
    userOutputs: [
      ]
- id: '3'
  name: Copy to Temp on Endpoint
  type: INVOKE_PLUGIN
  data:
    pluginName: FlexagonShellPlugin
    pluginOperation: execute
    endpointInstanceOverride:
      value: SOAHR
      isExpression: false
    consumesArtifacts: false
    producesArtifacts: false
    endpointSelection:
      choice: All
    endpointExecution:
      choice: Any
      stopOnError: false
    inputs:
    - name: FDSHELL_INP_CODE_SNIPPET
      value:
        value: |-
          cd $FD_TEMP_DIR
          mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
          cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
          $JAVA_HOME/bin/jar -xvf $FD_TRANSFER_DIR/transfer.jar
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_STOP_ON_ERROR
      value:
        value: 'true'
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_DISABLE_ECHO
      value:
        value: 'false'
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_RESTRICT_ENVIRONMENT
      value:
        isExpression: false
      isEncrypted: false
    - name: FDSHELL_INP_NO_SECURE_VARIABLES
      value:
        value: 'false'
        isExpression: false
      isEncrypted: false
    outputs: [
      ]
    userInputs: [
      ]
    userOutputs: [
      ]

 Workflow code in XML (prior to 8.0)

Code Block
languagexml
<?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:EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride>Step>
         <ns1:Name>Clone on FlexDeploy <ns0:consumesArtifacts>false<Server</ns0ns1:consumesArtifacts>Name>
            <ns0:producesArtifacts>false</ns0:producesArtifacts>
  <ns1:StepId>1</ns1:StepId>
         <ns0:EndpointSelection>
  InvokePlugin>
            <ns0:EndpointSelectionChoice>All<PluginName>FlexagonGITPlugin</ns0:EndpointSelectionChoice>PluginName>
            <<ns0:PluginOperation>cloneProjectSources</ns0:EndpointSelection>PluginOperation>
            <ns0:EndpointExecutionChoice>Any<EndpointInstanceOverride>LOCAL</ns0:EndpointExecutionChoice>EndpointInstanceOverride>
            <ns0:PluginInputs>
  :consumesArtifacts>false</ns0:consumesArtifacts>
            <ns0:PluginInput>producesArtifacts>false</ns0:producesArtifacts>
            <ns0:PluginInputs/>
      <ns0:Name>FDSHELL_INP_CODE_SNIPPET</ns0:Name>      <ns0:UserInputs/>
            <ns0:ValueType>Text</ns0:ValueType>PluginOutputs/>
            <ns0:UserOutputs/>
         <ns0:Encrypted>false<</ns0:Encrypted>InvokePlugin>
      </ns0:Step>
        <ns0:Step>
  <ns1:Type>String</ns1:Type>       <ns1:Name>Copy to Transfer on FlexDeploy Server</ns1:Name>
       <ns0:Text>cd $FD_TEMP_DIR
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar -cvfM $FD_TRANSFER_DIR/transfer.jar *</ns0:Text>
    <ns1:StepId>2</ns1:StepId>
         <ns0:InvokePlugin>
            <<ns0:PluginName>FlexagonShellPlugin</ns0:PluginInput>PluginName>
            <ns0:PluginOperation>execute</ns0:PluginOperation>
   <ns0:PluginInput>         <ns0:EndpointInstanceOverride>LOCAL</ns0:EndpointInstanceOverride>
            <ns0:Name>FDSHELL_INP_STOP_ON_ERROR<consumesArtifacts>false</ns0:Name>
     consumesArtifacts>
            <ns0:ValueType>Text<producesArtifacts>false</ns0:ValueType>producesArtifacts>
               <ns0:EndpointSelection>
  <ns0:Encrypted>false</ns0:Encrypted>             <ns0:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice>
     <ns1:Type>Boolean</ns1:Type>       </ns0:EndpointSelection>
            <ns0:Text>true<EndpointExecutionChoice>Any</ns0:Text>EndpointExecutionChoice>
               </ns0:PluginInput><ns0:PluginInputs>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_DISABLECODE_ECHO<SNIPPET</ns0:Name>
                  <ns0:ValueType>Text</ns0:ValueType>
                  <ns0:Encrypted>false</ns0:Encrypted>
                  <ns1:Type>Boolean<Type>String</ns1:Type>
                  <ns0:Text>cd $FD_TEMP_DIR
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar -cvfM     <ns0:Text>false<$FD_TRANSFER_DIR/transfer.jar *</ns0:Text>
               </ns0:PluginInput>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_STOP_RESTRICTON_ENVIRONMENT<ERROR</ns0:Name>
                  <ns0:ValueType>Text</ns0:ValueType>
                  <ns0:Encrypted>false</ns0:Encrypted>
                  <ns1:Type>String<Type>Boolean</ns1:Type>
                  <ns0:Text>true</ns0:Text>
               </ns0:PluginInput>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_NO_SECUREDISABLE_VARIABLES<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:PluginInputs>             <ns0:UserInputs/>
     <ns0:PluginInput>
      <ns0:PluginOutputs/>             <ns0:UserOutputs/>
         <<ns0:Name>FDSHELL_INP_RESTRICT_ENVIRONMENT</ns0:InvokePlugin>Name>
      </ns0:Step>       <ns0:Step>     <ns0:ValueType>Text</ns0:ValueType>
    <ns1:Name>Copy to Temp on Endpoint</ns1:Name>          <ns1<ns0:StepId>3<Encrypted>false</ns1ns0:StepId>Encrypted>
         <ns0:InvokePlugin>          <ns1:Type>String</ns1:Type>
  <ns0:PluginName>FlexagonShellPlugin</ns0:PluginName>             <ns0:PluginOperation>execute<</ns0:PluginOperation>PluginInput>
               <ns0:EndpointInstanceOverride>SOAHR</ns0:EndpointInstanceOverride>PluginInput>
                  <ns0:consumesArtifacts>false<Name>FDSHELL_INP_NO_SECURE_VARIABLES</ns0:consumesArtifacts>Name>
                  <ns0:producesArtifacts>false<ValueType>Text</ns0:producesArtifacts>ValueType>
             <ns0:EndpointSelection>     <ns0:Encrypted>false</ns0:Encrypted>
          <ns0:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice>        <ns1:Type>Boolean</ns1:Type>
     </ns0:EndpointSelection>             <ns0:EndpointExecutionChoice>Any<Text>false</ns0:EndpointExecutionChoice>Text>
             <ns0:PluginInputs>  </ns0:PluginInput>
             <ns0:PluginInput></ns0:PluginInputs>
            <ns0:UserInputs/>
      <ns0:Name>FDSHELL_INP_CODE_SNIPPET</ns0:Name>      <ns0:PluginOutputs/>
            <ns0:ValueType>Text<UserOutputs/ns0:ValueType>>
         </ns0:InvokePlugin>
        <ns0:Encrypted>false<</ns0:Encrypted>Step>
        <ns0:Step>
         <ns1:Type>String</ns1:Type>
       :Name>Copy to Temp on Endpoint</ns1:Name>
          <ns0:Text>cd $FD_TEMP_DIR
mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar -xvf $FD_TRANSFER_DIR/transfer.jar</ns0:Text>
  <ns1:StepId>3</ns1:StepId>
         <ns0:InvokePlugin>
            <<ns0:PluginName>FlexagonShellPlugin</ns0:PluginInput>PluginName>
            <ns0:PluginOperation>execute</ns0:PluginOperation>
  <ns0:PluginInput>          <ns0:EndpointInstanceOverride>SOAHR</ns0:EndpointInstanceOverride>
            <ns0:Name>FDSHELL_INP_STOP_ON_ERROR<consumesArtifacts>false</ns0:Name>
     consumesArtifacts>
            <ns0:ValueType>Text<producesArtifacts>false</ns0:ValueType>producesArtifacts>
              <ns0:EndpointSelection>
   <ns0:Encrypted>false</ns0:Encrypted>            <ns0:EndpointSelectionChoice>All</ns0:EndpointSelectionChoice>
      <ns1:Type>Boolean</ns1:Type>      </ns0:EndpointSelection>
            <ns0:Text>true<EndpointExecutionChoice>Any</ns0:Text>EndpointExecutionChoice>
               </ns0:PluginInput><ns0:PluginInputs>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_DISABLECODE_ECHO<SNIPPET</ns0:Name>
                  <ns0:ValueType>Text</ns0:ValueType>
                  <ns0:Encrypted>false</ns0:Encrypted>
                  <ns1:Type>Boolean<Type>String</ns1:Type>
                  <ns0:Text>cd $FD_TEMP_DIR
mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar   <ns0:Text>false<-xvf $FD_TRANSFER_DIR/transfer.jar</ns0:Text>
               </ns0:PluginInput>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_RESTRICTSTOP_ON_ENVIRONMENT<ERROR</ns0:Name>
                  <ns0:ValueType>Text</ns0:ValueType>
                  <ns0:Encrypted>false</ns0:Encrypted>/ns0:Encrypted>
                  <ns1:Type>Boolean</ns1:Type>
                  <ns1<ns0:Type>String<Text>true</ns1ns0:Type>Text>
               </ns0:PluginInput>
               <ns0:PluginInput>
                  <ns0:Name>FDSHELL_INP_NODISABLE_SECURE_VARIABLES<ECHO</ns0:Name>
                  <ns0:ValueType>Text</ns0:ValueType>
                  <ns0:Encrypted>false</ns0:Encrypted>
                  <ns1:Type>Boolean</ns1:Type>
                  <ns0:Text>false</ns0:Text>                <<ns1:Type>Boolean</ns0ns1:PluginInput>Type>
            </ns0:PluginInputs>      <ns0:Text>false</ns0:Text>
      <ns0:UserInputs/>         </ns0:PluginInput>
   <ns0:PluginOutputs/>
            <ns0:UserOutputs/>PluginInput>
           </ns0:InvokePlugin>       <<ns0:Name>FDSHELL_INP_RESTRICT_ENVIRONMENT</ns0:Step>
     Name>
    </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 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: [
]
- id: '2'
name: Copy to Transfer on FlexDeploy Server
type: INVOKE_PLUGIN
data:
pluginName: FlexagonShellPlugin
pluginOperation: execute
endpointInstanceOverride:
value: LOCAL
isExpression: false
consumesArtifacts: false
producesArtifacts: false
endpointSelection:
choice: All
endpointExecution:
choice: Any
stopOnError: false
inputs:
- name: FDSHELL_INP_CODE_SNIPPET
value:
value: |-
cd $FD_TEMP_DIR
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar -cvfM $FD_TRANSFER_DIR/transfer.jar *
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_STOP_ON_ERROR
value:
value: 'true'
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_DISABLE_ECHO
value:
value: 'false'
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_RESTRICT_ENVIRONMENT
value:
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_NO_SECURE_VARIABLES
value:
value: 'false'
isExpression: false
isEncrypted: false
outputs: [
]
userInputs: [
]
userOutputs: [
]
- id: '3'
name: Copy to Temp on Endpoint
type: INVOKE_PLUGIN
data:
pluginName: FlexagonShellPlugin
pluginOperation: execute
endpointInstanceOverride:
value: SOAHR
isExpression: false
consumesArtifacts: false
producesArtifacts: false
endpointSelection:
choice: All
endpointExecution:
choice: Any
stopOnError: false
inputs:
- name: FDSHELL_INP_CODE_SNIPPET
value:
value: |-
cd $FD_TEMP_DIR
mkdir $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
cd $FDBLD_GIT_SOURCE1_CHECKOUT_FOLDER
$JAVA_HOME/bin/jar -xvf $FD_TRANSFER_DIR/transfer.jar
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_STOP_ON_ERROR
value:
value: 'true'
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_DISABLE_ECHO
value:
value: 'false'
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_RESTRICT_ENVIRONMENT
value:
isExpression: false
isEncrypted: false
- name: FDSHELL_INP_NO_SECURE_VARIABLES
value:
value: 'false'
isExpression: false
isEncrypted: false
outputs: [
]
userInputs: [
]
userOutputs: [
] <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>

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1101d
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "FKB"
labelskb-how-to-article

Page Properties
hiddentrue

Related issues