Sed inside jenkins pipeline
问题 I am trying to run the below in jenkins and i get error any suggestions? sh ''' sed -i \':a;N;$!ba;s/\\n/\\|\\#\\|/g\' ${concl} ''' Error - Why isnt the ${concl} being repalced with filename inside the shell script? + sed -i ':a;N;$!ba;s/\n/\|\#\|/g' sed: no input files 回答1: I would suggest running bash command in double quotes and escape $ and \ character. Consider following Jenkins pipeline exemplary script: #!/usr/bin/env groovy pipeline { agent any stages { stage('Build') { steps { echo