On Mon, Feb 22, 2021 at 9:43 AM Gabriel Callaghan < [email protected]> wrote:
> I had a look at the permissions of the files used, and I get: > -rwxrwxrwx 1 jabes jabes 470 Feb 22 12:09 pushGames.sh > -rwxrwxrwx 1 jabes jabes 751 Feb 22 12:09 pushOneGame.sh > > which should mean it all works? > > I am currently looking into how to give the go account a way to run these. > > Marques, I did what you said and now I get this: > [go] Task: /bin/bash ./gocd/game-deploy/pushGames.shtook: 0.3s > Error happened while attempting to execute '/bin/bash > ./gocd/game-deploy/pushGames.sh'. > Please make sure [/bin/bash ./gocd/game-deploy/pushGames.sh] can be > executed on this agent. > [Debug Information] Environment variable PATH: > /home/go:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin > > Does this mean all my files have permissions set so I don't need to use > chmod, but I need to poke around in the settings of GOCD more? I'm guessing > this agent needs to be edited more? is the go user mentioned by Ram the > same as the agent? > Actually, Marques' suggestion to use bash and run the script is the best approach for the reasons he gave :) What you are facing right now is not a GoCD setting issue, but something specific to the invocation. Is the directory "gocd" within the current directory? What do you see if you passed -x to bash? (/bin/bash -x ./gocd/game-deploy/pushGames.sh) ? -- Ram -- 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/CANiY96Z1a2ZjcCV6uFO4%3DEXWOpXHp0J5p%3DvC5qq5X6mDpHFkLg%40mail.gmail.com.
