I keep getting an this error on a regular basis. It's very inconsistent, sometimes it's there and very often it is not. I'm using durable task plugin in my pipeline code to run a shell command. I included in the log previous command, which a chmod that adds execution flag to the java file.
Running in /var/lib/jenkins/jobs/My_Jobs/jobs/ubuntuvm04/workspace/build/tools/java/jre/bin
[Pipeline] {
[Pipeline] sh
[bin] Running shell script
+ chmod +x ./java
[Pipeline] sh
[bin] Running shell script
+ sync
[Pipeline] sh
[bin] Running shell script
+ sleep 5
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check java version)
[Pipeline] sh
[workspace] Running shell script
+ ./build/tools/java/jre/bin/java -version
/var/lib/jenkins/jobs/My_Jobs/jobs/ubuntuvm04/workspace@tmp/durable-b87cfd9e/script.sh: line 2: ./build/tools/java/jre/bin/java: Text file busy
.
I'm almost giving up on this error and I'm afraid I'll end up writing code to keep retrying to execute the failed line, but based on that error, does the Text file busy problem concerns script.sh that the plugin made, or the java file? that I'm trying to run