I am trying to run a bash shell script that executes a few commands (ade - oracle equivalent of GIT). The problem is that ade commands by itself creates a new shell and executes all the sub operations in the new shell. While this happens, the parent shell from where I started the shell script, is sort of left hanging.
Example
- sh start.sh
- start.sh runs a command called 'ade create view <view_name>' and 'ade useview <view_name>'.
- Step 2 creates a new shell separate from the parent shell from where start.sh was executed.
- In the new shell I am supposed to execute a bunch of commands for creating a new environment based on the latest code libraries, however the shell from where start.sh was started does not know that the control has gone to a new shell invoked by the 'ade' commands.
For folks wondering about ade --> https://foolchauhan.github.io/git-vs-ade/
Is there a way this can be handled? Primarily I need to tell the parent shell script that control has gone to child shell and allow the new shell to take over the next set of operations.
Same would apply if were to use a Jenkins pipeline. The jenkins pipeline would be able to connect to the linux server and issue step 1 and step2 , but after that the pipeline would be stuck because it wouldn't understand that a new shell has been started which is different from what Jenkins initiated.