I am setting a Pipeline for a Salesforce project and wants to create a Job that refreshes a particular branch with Master Branch and PUSH it back to the remote GitLab repo hosted inside our data centre. Then the deployment is done in Integration Sandbox. Below is my Jenkins Job(Exceute Shell).
git branch -a git config --list --show-origin git checkout validate/cocktail git pull origin master --force git push origin validate/cocktail ...sfdx force:source:deploy....
Though I am able to pull code but I am receiving an access error while pushing code to the remote Repo(the last git push command). What could be the potential reason and what should I configure to get the proper access? error :
+ git push origin validate/cocktail GitLab: You are not allowed to push code to this project. fatal: Could not read from remote repository. Please make sure you have the correct access rights