Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to run the command in the background or async in the task's script?

leegyu86 October 18, 2023

The script is waiting for the termination of a process run with pythonw or the start /b option.

Is there a separate option or other way to make the Script not wait?

 

pythonw -c "import time; time.sleep(2); print('hello bamboo')"

19-Oct-2023 11:05:47 D:\workspace\A-WRT-JOB1>pythonw -c "import time; time.sleep(2); print('hello bamboo')"
19-Oct-2023 11:05:49 hello bamboo
19-Oct-2023 11:05:49 Finished task 'Script' with result: Success
19-Oct-2023 11:05:49 Running post build plugin 'Docker Container Cleanup'
19-Oct-2023 11:05:49 Running post build plugin 'NCover Results Collector'
19-Oct-2023 11:05:49 Running post build plugin 'Artifactory Release Management Staging'
19-Oct-2023 11:05:49 Running post build plugin 'Artifactory Build Info Copier'
19-Oct-2023 11:05:49 Running post build plugin 'Artifactory Gradle Properties Info Copier'
19-Oct-2023 11:05:49 Running post build plugin 'Clover Results Collector'
19-Oct-2023 11:05:49 Running post build plugin 'npm Cache Cleanup'
19-Oct-2023 11:05:49 Running post build plugin 'Artifact Copier'
19-Oct-2023 11:05:49 Finalising the build...

1 answer

1 accepted

1 vote
Answer accepted
leegyu86 October 23, 2023

There was no way to do this on Windows, so I solved it on Linux.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events