AEM Jenkins Integration | Community
Skip to main content
Level 2
May 9, 2022

AEM Jenkins Integration

  • May 9, 2022
  • 2 replies
  • 1407 views

Hello everyone,

 

I'm facing one weird issue while deploying my Maven project via jenkins pipleline. I've created freestyle jenkins pipleline and it's parameterised accepting branch and environment as parameters. 

I've AEM credentials saved in Credential Manager of jenkins with xxxx ID.

When I'm trying to deploy I'm getting 503 error code 

response=Service Unavailable

While other jobs are able to access the same environment with Jenkins, what can be the issue? Any configuration I'm missing?

I've custom settings.xml and build command I'm using :

mvn clean install -s settings.xml -X -PautoInstallPackage -Daem.host=xxxx -Daem.port=xxxx-Dvault.user=$AEM_USERNAME -Dvault.password=$AEM_PASSWORD 

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

2 replies

Kiran_Vedantam
Community Advisor
Community Advisor
May 9, 2022

Hi @veenu 

 

Can you check the complete logs in Jenkins, what is it saying?

 

Service unavailable is generally if the server is not reachable or not switched on.

 

Thanks,

Kiran Vedantam.

VeenuAuthor
Level 2
May 9, 2022

Hello @kiran_vedantam ,

 

That's the exact error I'm getting, do we need to configure something in settings.xml or pom file as I ran it with curl command,

curl --trace -f -u ${AEM_USERNAME}:${AEM_PASSWORD} https://$AEM_LOCATION/crx/packmgr/service.jsp -F name=${zipnames[$arraycounter]} -F file=@"${directories[$arraycounter]}/${zipnames[$arraycounter]}" -F install=true -F force=true it installed packages, but why it is not running with shell script  mvn clean install -s settings.xml -X -PautoInstallPackage -Daem.host=xxxx -Daem.port=xxxx-Dvault.user=$AEM_USERNAME -Dvault.password=$AEM_PASSWORD 

 

joerghoh
Adobe Employee
Adobe Employee
May 11, 2022

503 is a server-side error; that means that you should check the AEM logs for more details.