Jenkins Build Failure | Community
Skip to main content
Level 2
Jul 28, 2017 3:17 PM UTC
Solved

Jenkins Build Failure

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.
sandeepv1805Accepted solution
Level 2
Aug 6, 2017 12:20 PM UTC

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

5 replies

sandeepv1805AuthorAccepted solution
Level 2
Aug 6, 2017 12:20 PM UTC

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

Translate
Diego_Fontan
Level 4
Jul 28, 2017 11:43 PM UTC

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

Translate
Level 2
Jul 28, 2017 4:37 PM UTC

I had given credentials in Jenkins config

Translate
Singaiah_Chintalapudi
Level 7
Jul 28, 2017 4:05 PM UTC

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

Translate
edubey
Level 10
Jul 28, 2017 4:04 PM UTC

Have you given aem credentials in pom or jenkins configs?

Translate