-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
jenkinsci/blueocean with: 1.4.0 · Core 2.89.3 · 260c271
Firefox ESR 52.6.0 (64-bit)
In the Blue Ocean editor, I created a 'Shell' build step.
I entered mkdir -p foo .svn
I pressed Enter
I pressed Enter a bunch more times.
Expected
Line Breaks
Actual
No line breaks show. So somehow this is a single line text field.
Part 2
Since I only have a single line to work with, I then added:
&& touch foo/bar .svn/WTF
I saved the pipeline and tried to run it.
Output:
[pipeline-test_master-Z73P5QIVXBWIPRMMLLPQWHFRZRRUCJC52CVPZJEYBX7C6JCWQZUA] Running shell script + mkdir -p foo .svn /var/jenkins_home/workspace/pipeline-test_master-Z73P5QIVXBWIPRMMLLPQWHFRZRRUCJC52CVPZJEYBX7C6JCWQZUA@tmp/durable-a35e39ff/script.sh: line 13: syntax error: unexpected "&&" script returned exit code 2
I then checked the Jenkinsfile and it shows:
pipeline { agent any stages { stage('Build') { steps { sh '''mkdir -p foo .svn && touch foo/bar .svn/WTF''' archiveArtifacts(artifacts: '*/', defaultExcludes: true) } } } }
Back to the visual editor: It still shows the entire script on a single line.
Notes
So clearly, it's multiline input but doesn't show like it.