-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
Jenkins 2.414.3
Crash when saving configuration of a project containing EOF shell script which contains following format:
cd ${WORKSPACE}
cat > HelloWorld.sh <<- 'EOF'
#!/bin/bash
echo HelloWorld
EOF
bash HelloWorld.sh
HTTP Exception:
[JENKINS-72327] Crash when saving configuration of a project containing EOF shell script
Environment | Original: 2.414.3 | New: Jenkins 2.414.3 |
Labels | Original: 2.414.3-fixed shell | New: shell |
Assignee | Original: nobody [ richscze ] |
Attachment | New: image-2023-11-16-16-17-24-310.png [ 61489 ] |
Description |
Original:
Crash when saving configuration of a project containing EOF shell script which contains following format:
{code:java} cd ${WORKSPACE} cat > HelloWorld.sh <<- 'EOF' #!/bin/bash echo HelloWorld EOF bash HelloWorld.sh{code} |
New:
Crash when saving configuration of a project containing EOF shell script which contains following format:
{code:java} cd ${WORKSPACE} cat > HelloWorld.sh <<- 'EOF' #!/bin/bash echo HelloWorld EOF bash HelloWorld.sh{code} HTTP Exception: |
Attachment | Original: image-2023-11-16-16-17-24-310.png [ 61489 ] |
Attachment | New: image-2023-11-16-16-17-48-070.png [ 61490 ] |
Workaround solution: Remove "cd ${WORKSPACE}" before EOF.
cat > HelloWorld.sh <<- 'EOF'
#!/bin/bash
echo HelloWorld
EOF
#!/bin/bash
echo HelloWorld
EOF