Versions Compared

Key

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

...

  • Update all calls to Mettleci remote commands, replacing -password %MCIPASSWORD% with -privateKey \"%SSHKEYPATH%\", and also include -passphrase \"%SSHPASSPHRASE\" if a passphrase is required for the SSH key:

    • the remote download command in JenkinsFile, in the stage titled "Create DSParams Diff Artifact"

    • all MettleCI remote calls (remote upload, remote download, remote execute) inside the mci_deploy or mci_unittest shared library functions

      eg:

      Code Block
              bat label: 'Cleanup', 
                  script: '''
                      %AGENTMETTLECMD% remote execute ^
                      -host %IISENGINENAME% ^
                      -username %MCIUSERNAME% -password %MCIPASSWORD% ^
                      -script "config/cleanup_unittest.sh"
                  '''


      becomes

      Code Block
              bat label: 'Cleanup', 
                  script: '''
                      %AGENTMETTLECMD% remote execute ^
                      -host %IISENGINENAME% ^
                      -username %MCIUSERNAME% -privateKey \"%SSHKEYPATH%\" ^
                      -passphrase \"%SSHKEYPHRASE%\" ^
                      -script "config/cleanup_unittest.sh"
                  '''

Info

For other platforms, the ways we organise settings will differ, but in each case the way we add settings for the SSH key will be the same as for how we currently manage passwords.

Updating the MettleCI remote calls to replace the -password argument with -privateKey and -passphrase is the single element that will be consistent for all platforms. Of course, the exact syntax used is specific to the platform, but the style of updates will be consistent with what is already coded.