Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44319

Need to adapt MSI and OSX packaging scripts for new CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • packaging
    • None

      When generating MSI and OSX packages we are inspecting the environment variable JENKINS_SSH_KEY and if present it's used for authentication of CLI commands that invoke the distfork plugin (see here).

      The CLI command is then composed with a "-i /path/to/key" option. AFAIK now in the CLI this option does only make sense if used together with "-ssh" or "-remoting", being the latter not recommended.

      So basically if the normal thing will be to use "-ssh", which requires specifying a user, we need to enable a way of doing this.

      I propose using a new environment variable called JENKINS_SSH_USER in a similar way the JENKINS_SSH_KEY one is used. If it has some content, the -ssh -user xx@yy.zz part will be added to the command.

            mfranco Manuel Franco
            mfranco Manuel Franco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: