Aller au contenu principal

Pipeline

Cover-Logo-512x512-blue

How to create a SSH Key

ssh-key-passwordless

  • Open a terminal window.
  • Type the following command line: ssh-keygen -t rsa.
  • Select the default values for all options. ...
  • Send the public key file named id-rsa.

the SSH key is in the following folder-- C:\Users\yourName.ssh

The role of the Pipeline is to automate the manipulations made manually by the Parametrist before delivery of a provider

  • Import price
  • Optimisation
  • Creation of an installation executable

create a repo on GIT for the import price

  • "CustomerName-import-price"

To automate a tariff import, the existing VBS file must be used (if it exists) and the dialogues to the user must be deleted. The pipeline will only use the "-1" function which corresponds to a complete tariff import.

To do this, copy the import script (VBS) and rename it

  • "CustomerName_Pipeline.vbs"

Turn all dialog boxes into comments to do this type CTRL+F and search for "MsgBox".

image

then at each element found add ' in front to turn the command line into a comment. The text should turn grey

  • Before image
  • After image

Add constants to allow a silent mode for the execution

  • Const SILENT_MODE_MENU_CHOICE = ""
  • Const SILENT_MODE_PROVIDER_CHOICE = ""
  • Dim SILENT_MODE
  • image

After the menu choice add the silent mode forced codeline

!!! also transform the menu choice line as a message

  • 'menuChoice = InputBox(strMenu, PROVIDER_GAMMUT_NAME & " SCRIPT TOOL", "-1")
  • If SILENT_MODE_MENU_CHOICE <> "" then
  • menuChoice = SILENT_MODE_MENU_CHOICE
  • SILENT_MODE = true
  • Else
  • menuChoice = InputBox(strMenu, PROVIDER_GAMMUT_NAME & " SCRIPT TOOL", "-1")
  • End If
  • image

at the end of the menu add a loop

  • Loop Until menuChoice="0" Or SILENT_MODE = True
  • image

create a repo on GIT for the pipeline CustomerName-provider-fabric.zip

  • "ProviderName-provider-fabric"
  • add the differents files as the picture
    • image
  • in the following files replace the following information with your own
    • ProviderName_X
    • CustomerName_providers_compiled
    • CustomerName_providers_packaged
    • CustomerName_providers_compiled

config.json

CustomerName.iss

now let's see the scripts ("".ps1")

___config.ps1

  • just change the following information
  • image
  • the last line of code is optionnal
$Global:specialRulesFileName = if ($Env:SPECIAL_RULE_FILENAME) { $Env:SPECIAL_RULE_FILENAME } else { "SpecialRules.csv" }

03_price.ps1

  • image

05_package.ps1

  • image