Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Why does working directory change from action to action?
-
If you look at these two log outputs the Get Latest is going to WRK folder and Execute running from SRC folder!
Build 32 for Cusmod Linux 9.4.0 (24/07/2013 4:40:49 p.m.)
Action Group 3: Initialise Client
Action 1: Get Latest from PowerBuilder/CusMod/trunk/bin to default directory.
Initializing action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: C:\BuildMaster_SVCTMP_A3_S1012\TMP
Source Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC
Target Directory: C:\BuildMaster_SVCTMP_A3_S1012\WRK
Server: DWDCW-DSAS01 (Id: 1)
Initialization complete. Executing...
Executing Get Latest Command
Arguments: export "http://svr20008:81/svn/PowerBuilder/CusMod/trunk/bin" "C:\BuildMaster_SVCTMP_A3_S1012\WRK" "--force" --non-interactive --trust-server-cert --Build 32 for Cusmod Linux 9.4.0 (24/07/2013 4:40:49 p.m.)
Action Group 4: Deploy Client
Action 2: Execute c:\cygwin\bin\bash.exe (-c "./CopyInstallerFileToPortServers.sh %CUSMOD_COUNTRY% %CLIENT_VERSION%") in the default directory
Initializing action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: C:\BuildMaster_SVCTMP_A3_S1012\TMP
Source Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC
Target Directory: C:\BuildMaster_SVCTMP_A3_S1012\WRK
Server: DWDCW-DSAS01 (Id: 1)
Initialization complete. Executing...
Arguments: -c "./CopyInstallerFileToPortServers.sh CK 9.4.0/376"
Working Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC -
This is how the "default directory" is implemented (see http://inedo.com/support/documentation/buildmaster/deployment-automation/deployment-plans/actions). It allows for the same directory to be used as input/output.
At the start of the action, the "WRK" directory is moved to "SRC" and a new "WRK" directory is created.
If there are no files in "WRK" at the end of the action, "WRK" is deleted and "SRC" is renamed to "WRK". Otherwise, SRC is deleted.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login