Jenkins job to sync client multiple repositories to adobe cloud manager git repository on git changes to specific branches | Community
Skip to main content
Level 2
March 22, 2022

Jenkins job to sync client multiple repositories to adobe cloud manager git repository on git changes to specific branches

  • March 22, 2022
  • 4 replies
  • 2394 views

client has multiple repositories that need to be pushed to adobe cloud manager repo on git changes in specific branches like dev, release, master and trying to achieve this using Jenkins job.  what are the steps to be done. I tried creating the jenkins job using the credentials(with username and password) but adobe cloud manager repo couldn't be accessed in jenkins. What is the best way to auto synch this scenario. should we create any script and keep it in the git repo and have the jenkins job to read it from there. what kind of authentication credentials we need.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Ravi_Pampana
Community Advisor
Community Advisor
March 22, 2022

Hi,

 

We are able to access the Adobe git from our Jenkins , using below shell script which can be added to Jenkins Job we can push a branch from one repo to another repo in different domains

 

#!/bin/bash
rm -rf {REPO_NAME}
git clone --single-branch --branch $BRANCH git@{gitdemo}/{REPO_URL}.git
cd {REPO_NAME}
git push https://{USER}:{PWD}@{ADOBE_GIT_URL} --all

 

Hope this helps!

Level 2
March 22, 2022

I am curious about the authentication process for adobe git from jenkins. I tried using the credentials provided from cloud manager with https: url and it's not getting to cloud manager git and see proxy can not be connected

Ravi_Pampana
Community Advisor
Community Advisor
March 22, 2022

Check whether any whitelisting issue, I remember working with our IT team to get whitelisted our Jenkins to access adobe git.

arunpatidar
Community Advisor
Community Advisor
March 23, 2022
Level 2
March 23, 2022

In fact I followed the same and had issues to connect to Adobe ACM git repository. our jenkins not able to connect to adobe acm git and showing the error as "proxy not able to connect on port XXX "

Fanindra_Surat
Community Advisor
Community Advisor
March 23, 2022

Hi @rajashekharreddy0707 ,

 

Refer to https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/working-with-multiple-source-git-repositories.html?lang=en#

 

It has a sample jenkins job that works for pushing code to adobe git.

You can pass the credentials by updating the below command with corresponding values for $MAIN_USER and $MAIN_PASSWORD 

# Cloud Manager's Git repository
export MAIN_REPOSITORY=https://$MAIN_USER:$MAIN_PASSWORD@git.cloudmanager.adobe.com/<PATH>


If you have an error even with valid credentials here, please share the exact error message.

 

Thanks,

Fani

kautuk_sahni
Community Manager
Community Manager
May 30, 2022

@rajashekharreddy0707 

[Webinar | AEM GEMs] Looking under the hood - Cloud Manager 2022 | Register: https://adobe.ly/3t4jfgp  & Ask Questions related to this Webinar: https://adobe.ly/3O0rdzd 

Date &Time: Wednesday, June 15, 2022 - 8 am PDT OR 5 pm CET OR 8.30 pm IST
Speakers: Remus Stratulat & Shankari Panchapakesan

Share this within your Organisation and with your AEM peers!!

Kautuk Sahni