Hi,

The problem is the project working dir is outside of GoCD Agent working 
dir, please check the attachment image,

Thank you.
On Saturday, June 25, 2022 at 1:58:36 AM UTC+7 [email protected] 
wrote:

> Hi there,
>
> It seems to be this should be fairly easy to do by simply following the 
> documentation:
>
> https://docs.gocd.org/current/configuration/admin_add_task.html
>
> If that is not working for you, please let us know what you have tried and 
> what errors you are encountering.
>
> Cheers,
> Jason Smyth
>
>
> On Friday, 24 June 2022 at 00:31:08 UTC-4 [email protected] wrote:
>
>> In my "deploy" pipeline, I have pulled the built artifact from upstream 
>> pipeline, but the problem is my working directory is different compared to 
>> the GoCD Agent working directory, so I can't deploy that artifact to my 
>> working dir. Additionally, I must run some command on my working dir after 
>> moving the artifact, e.g. `npm run production`.
>>
>>    - My working dir: `/var/www/vhosts/project`
>>    - GoCD Agent working dir: `/var/lib/go-agent`
>>
>> So, how can I copy the artifact to the outside of GoCD Agent and then run 
>> some additional commands?
>>
>> Thanks a lot.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/0893b286-47e1-431d-84ad-53045bbdd063n%40googlegroups.com.

Reply via email to