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

Need to adapt MSI and OSX packaging scripts for new CLI

    • 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.

          [JENKINS-44319] Need to adapt MSI and OSX packaging scripts for new CLI

          Manuel Franco created issue -
          Manuel Franco made changes -
          Description Original: 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|[https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]).]

          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.
          New: 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|[https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]).]

          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.
          Manuel Franco made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Manuel Recena Soto made changes -
          Description Original: 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|[https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]).]

          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.
          New: 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|[https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]]).

          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.
          Manuel Recena Soto made changes -
          Description Original: 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|[https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]]).

          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.
          New: 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|https://github.com/jenkinsci/packaging/blob/1df9edbb61445632acc1109528ad09c1b6f2fda8/msi/build-on-jenkins.sh#L26]).

          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.
          Manuel Franco made changes -
          Remote Link New: This issue links to "jenkinsci/packaging#98 (Web Link)" [ 16800 ]
          Manuel Franco made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CLTS-1834 (Web Link)" [ 19171 ]

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

              Created:
              Updated:
              Resolved: