How do I pull from the remote gitlab repository in a freestyle Jenkins pipeline?

Asked

Viewed 41 times

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

inserir a descrição da imagem aqui

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

inserir a descrição da imagem aqui

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

inserir a descrição da imagem aqui

1 answer

-2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.