Open zlee520 opened 1 year ago
Hi @zlee520, this message means that the bash child process is not finished.
As I see it, you are trying to run your application in the background, so in this case the pipeline task will not wait for the background process to finish. But this should not be the reason for the task to fail.
What problem are you seeing in this case? And could you explain what you are trying to do and what result do you expect?
Hi @zlee520, this message means that the bash child process is not finished.
As I see it, you are trying to run your application in the background, so in this case the pipeline task will not wait for the background process to finish. But this should not be the reason for the task to fail.
What problem are you seeing in this case? And could you explain what you are trying to do and what result do you expect?
hello, I want to start a java app, this task is successfull but the java app not started running the same command directly on the server can start the app
Hi , Do we have any resolution for it ? We are also facing the same thing.
@KonstantinTyukalov I have a similar problem than OP but with pwsh task, behaves similarly to bash:
steps:
- pwsh: docker build .
In my exemple I'm trying to build a docker image, which takes around 3 minutes. The problem I'm facing is that the error provokes a failure of the step, even though the build continues and succeeds. I don't want to use continueOnError: true
because then I wouldn't fail the step when the docker image fails to build.
As I see it, you are trying to run your application in the background, so in this case the pipeline task will not wait for the background process to finish. But this should not be the reason for the task to fail.
The step actually runs to completion AND fails because of that error.
I don't understand why this is a topic in the first place. Pipelines are expected to run long running processes that use STDIO to provide some output. This shouldn't even yield a warning, the task should simply wait for the process to complete.
Please note, this works fine for me on Windows agents, it only fails on Linux agents.
$ uname -a
Linux hostname 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Probably related to https://github.com/microsoft/azure-pipelines-tasks/issues/19844
Task name
https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
Task version
2.201.1
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2022
Operation system
Ubuntu 20.04
Question