jenkinsci / jenkinsci/durable-task-plugin
[JENKINS-50247] durable-task-plugin syntax error after upgrade to 1.22
Open
component:durable-task-plugin
imported-jira-issue
priority:blocker
resolution:unresolved
- Dominant language
- Java
- Stars
- 30
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
this worked before upgrading the durable plugin now it has a syntax error, not entirely sure if it is directly caused by this plugin but it depends on it i guess.
[frontend_develop-BLVL] Running shell script Executing shell script inside container [ng-cli] of pod [kubernetes-27f4a85514a3439cbd380fedd5c5375a-111126c349546] Executing command: sh -c { while [ -d '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2' -a \! -f '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt' ]; do touch '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt'; sleep 3; done } & jsc=durable-85747fb19e3db01bfcc5a20813b729e7; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/script.sh' > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp'; mv '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp' '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt'; wait # cd /home/jenkins/workspace/frontend_develop-BLVL sh -c { while [ -d '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2' -a \! -f '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt' ]; do touch '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/je# nkins-log.txt'; sleep 3; done } & jsc=durable-85747fb19e3db01bfcc5a20813b729e7; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/script.sh' > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp'; mv '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp' '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt'; wait exit
while: 1: while: Syntax error: end of file unexpected
# # /bin/sh: 2: Syntax error: "}" unexpected
---
Originally reported by marvinosswald, imported from: durable-task-plugin syntax error after upgrade to 1.22
Raw content of original issue
this worked before upgrading the durable plugin now it has a syntax error, not entirely sure if it is directly caused by this plugin but it depends on it i guess.
[frontend_develop-BLVL] Running shell script Executing shell script inside container [ng-cli] of pod [kubernetes-27f4a85514a3439cbd380fedd5c5375a-111126c349546] Executing command: sh -c { while [ -d '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2' -a \! -f '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt' ]; do touch '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt'; sleep 3; done } & jsc=durable-85747fb19e3db01bfcc5a20813b729e7; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/script.sh' > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp'; mv '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp' '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt'; wait # cd /home/jenkins/workspace/frontend_develop-BLVL sh -c { while [ -d '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2' -a \! -f '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt' ]; do touch '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/je# nkins-log.txt'; sleep 3; done } & jsc=durable-85747fb19e3db01bfcc5a20813b729e7; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/script.sh' > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp'; mv '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt.tmp' '/home/jenkins/workspace/frontend_develop-BLVL@tmp/durable-8f71a2d2/jenkins-result.txt'; wait exit
while: 1: while: Syntax error: end of file unexpected
# # /bin/sh: 2: Syntax error: "}" unexpected
Contributor guide
Assessment
This issue has not been assessed yet.