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

Space required at the end of the interpreter in a shell step

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The following shell step only works if a space is added after 'bash'.

      sh label: 'with bash', script: '''#!/bin/bash 
       if [[ 0 = 0 ]]; then echo ok; else echo bad; fi
       '''

      Without the space the shebang line appears to be ignored.

      Having to end a line with a space is very counter-intuitive.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bram_mertens Bram Mertens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: