[JIRA] (JENKINS-57321) Cannot set diferent shebang in shell in Docker in pipeline
Title: Message Title Ovidiu-Florin Bogdan commented on JENKINS-57321 Re: Cannot set diferent shebang in shell in Docker in pipeline I have tried just now. It works. I didn't think the newline after """ gets into the executed script. Thank you Carlos Sanchez. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199091.1556886771000.19593.1557225900458%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57321) Cannot set diferent shebang in shell in Docker in pipeline
Title: Message Title Ovidiu-Florin Bogdan closed an issue as Not A Defect Jenkins / JENKINS-57321 Cannot set diferent shebang in shell in Docker in pipeline Change By: Ovidiu-Florin Bogdan Status: Open Closed Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199091.1556886771000.19595.1557225900486%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57321) Cannot set diferent shebang in shell in Docker in pipeline
Title: Message Title Carlos Sanchez commented on JENKINS-57321 Re: Cannot set diferent shebang in shell in Docker in pipeline have you tried without the new line? sh """#!/bin/sh Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57321) Cannot set diferent shebang in shell in Docker in pipeline
Title: Message Title Ovidiu-Florin Bogdan created an issue Jenkins / JENKINS-57321 Cannot set diferent shebang in shell in Docker in pipeline Issue Type: Bug Assignee: Carlos Sanchez Components: docker, pipeline Created: 2019-05-03 12:32 Environment: Jenkins 2.164.2 Docker Pipeline Plugin 1.18 Pipeline Plugin 2.6 Blue Ocean Plugin 1.14.0 Labels: user-experience pipeline Priority: Major Reporter: Ovidiu-Florin Bogdan With the following pipeline: pipeline{ agent none stages{ stage('deploy') { agent { docker { image 'alpine:latest' } } steps { sh """ #!/bin/sh echo foo """ } } } } I get the following output: [Pipeline] Start of Pipeline (hide) [Pipeline] stage [Pipeline] { (deploy) [Pipeline] node Running on Auto-launched Jenkins NextGen build slave (i-XXX) in /home/jenkins/workspace/XXX [Pipeline] { [Pipeline] checkout Git checkout logs... [Pipeline] withEnv [Pipeline] { [Pipeline] sh +