Jenkins Build Failure | Community
Skip to main content
Level 2
July 28, 2017
Solved

Jenkins Build Failure

  • July 28, 2017
  • 5 replies
  • 3188 views

Hi  -

I have a maven project and when i Trigger build from Jenkins, the build fails showing the below error message.

  [INFO] Installing Bundle core(/var/build/.jenkins/jobs/test_1/workspace/core/target/0.0.1-SNAPSHOT.jar) to

Host:port/crx/repository/crx.default/apps/project/install/

via PUT [INFO] basic authentication scheme selected [INFO] Failure authenticating with BASIC 'Adobe CRX WebDAV'@host:port

<i>waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.1.0:install (install-bundle-author) on project dialog.core: Installation on my instance

failed, cause: Installation failed, cause: Unauthorized -> [Help 1] </i>

I have checked for build passwords and everything looks fine and able to install the package manually.

Any suggestions on how to work around this.

Thanks for your inputs

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

Settings.xml path was wrongly configured in Jenkins and issue is resolved after correcting it .. thanks all

5 replies

edubey
Level 10
July 28, 2017

Have you given aem credentials in pom or jenkins configs?

Singaiah_Chintalapudi
Level 7
July 28, 2017

Check your profile on pom.xml. You have to set the profile and config the parameters to deploy the code to higher environments.

Level 2
July 28, 2017

I had given credentials in Jenkins config

Diego_Fontan
Level 4
July 28, 2017

You can try install a package using curl and check if your credential  are correct or no into pom.xml

- curl -u user:password -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/yourPackage.zip?cmd=install

sandeepv1805AuthorAccepted solution
Level 2
August 6, 2017

Settings.xml path was wrongly configured in Jenkins and issue is resolved after correcting it .. thanks all