Expand my Community achievements bar.

SOLVED

Jenkins Build Failure

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

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

View solution in original post

5 Replies

Avatar

Level 10

Have you given aem credentials in pom or jenkins configs?

Avatar

Level 9

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

Avatar

Level 3

I had given credentials in Jenkins config

Avatar

Level 4

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

Avatar

Correct answer by
Level 3

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