It's hard to debug why it is not reflecting without having the entire pipeline spec or a screenshot of all the tasks that happen. Having said that, based on your note it seems like you're doing `git pull` inside the stage which would defeat the purpose of pipeline materials / tasks. You should instead scp or ftp the contents of the php project to `/var/www/html` folder on the remote server for each run.
Thanks, On Wed, 9 Aug 2023 at 09:22, Vijayakumaran A. < [email protected]> wrote: > Hi Team, > > I have one requirement, we have a php application,Whenever a developer > pushes their code to a repository, gocd automatically triggers the pipeline > and deploy the latest code to the php project directory. > > example : > php project dir : /var/ww/html > > Whenever pushes happen my pipeline triggers and deploy the changes to the > php project dir. > > I have set up one stage with one job > cd /var/www/html && git pull is working fine.But when i use trigger with > option to deploy the previous commit my previous changes are not > reflected to my php project directory. > > what is the step i need to make this work..im new to gocd please let me > know if i did any mistake or need to change anything. > > -- > 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/cbd2d65b-8371-43e9-bf35-10c5482dc682n%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/cbd2d65b-8371-43e9-bf35-10c5482dc682n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Ashwanth Kumar / ashwanthkumar.in -- 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/CAD9m7CzShfqy5GN9XXD0hSmw4Yh7FFZraOM1MXu-CBXqJNE95g%40mail.gmail.com.
