Versions Compared

Key

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

...

To make this change in Jenkins:

  • Add Jenkins credentials (as Secret Text, like our other credentials) for each SSH in use:

    • the path of the SSH key file

    • the passphrase, if one is being used

  • Add environment variables to relevant agents, that refer to the SSH credentials in the same manner as the example pipelines already do with IIS and MCI passwords, eg:

    • SSHKEYPATH for the path of the SSH key file

    • SSHKEYPHRASE for the SSH ket passphrase, if used

  • In the JenkinsFile, add calls for SSHKEYPATH and SSHKAYPHRASE to withCredentials calls for:

    • the stage titled "Create DSParams Diff Artifact", where the remote download command fetches the template DSPARAMS file from the source DataStage instance

    • all stages that reference mci_deploy or mci_unittest

      eg:

      Code Block
      withCredentials([
          string(credentialsId: "${env.IISPASSWORD}", variable: 'IISPASSWORD'),
          string(credentialsId: "${env.MCIPASSWORD}", variable: 'MCIPASSWORD'),
          string(credentialsId: "${env.SSHKEYPATH}", variable: 'SSHKEYPATH'),
          string(credentialsId: "${env.SSHKEYPHRASE}", variable: 'SSHKEYPHRASE')
      ]) {
      

...