0
I’d like to know how to best search for remote repository updates by doing a git pull with a fresh Jenkins pipeline. I am using Jenkins just to get updates on the master and Developer branchs. I created a job and passed this script
I need to restart pm2, and run Yarn (in case I added a new lib) but I’m afraid permission error is denied when Jenkins tries to pull
I know that my access with gitlab, for ssh is correct, because the agent of Jenkins does the pull inside the folder workspaces. I don’t know if the most correct way would be to copy or move the code from within that folder, or redirect the location it does the default pull. I am using different aws ec2, one for Jenkins and one for approval and production