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

Publish Over SSH plugin: shebang is fully ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Ubuntu-14.04, docker 1.12.1, docker image: jenkins:latest (jenkins 2.7.2), publish-over-ssh 1.14

      Hello,

      I'm using latest version of Jenkins from official docker repo. And currently it's not possible to execute a code in the bash shell. It always executes in /bin/sh instead (which in Ubuntu is a link to dash shell).

      The following code give me - "/bin/sh".

      #!/bin/bash
      echo ${SHELL}
      

      I have tested the same project (a simple freestyle job) on Jenkins 1.65x and it works fine.

            slide_o_mix Alex Earl
            alex_hha Alex Domoradov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: