ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jm_in_pgh <>
Subject Credentials problem when publishing to Artifactory
Date Tue, 01 Mar 2011 21:33:28 GMT

Hi, we have a bunch of projects set up to publish to Artifactory via Jenkins. 
They mostly follow the same pattern: retrieve dependencies with Ivy, build
artifacts on Jenkins, publish artifacts to Artifactory.  But one of our
projects has a problem: Every time Jenkins tries to publish to Artifactory,
we get the error:

c:\some_path\build.xml:63: impossible to publish artifacts for
my_org#my_artifact;my_version: Access to URL
http://my_server/artifactory/some_other_path/artifact_name-version.jar was
refused by the server: Bad credentials

This project is loading the same set of credentials via Ant as all our other
projects, which are published successfully.  But when I look in our
Artifactory logs, I see 

for anonymous/

( is the address of the Jenkins build server.)

For artifacts that are published successfully, I see this in the Artifactory

2011-03-01 16:19:47,281 [DENIED DEPLOY]
repository_name:my_org/successful_artifact/blahblahblah/artifact_name for
2011-03-01 16:19:47,807 [ACCEPTED DEPLOY]
repository_name:my_org/successful_artifact/blahblahblah/artifact_name for

Note that on the successful publish task, Jenkins first tried anonymous,
then tries the user "builder", which is successful.  This is the name
supplied in the credentials that I would hope all of our projects are using.

So, two questions:
1. Anyone ever seen anything like this before?
2. How can I get Ivy to output the credentials (or at least username) that
it is supplying to my publish task on Jenkins?

View this message in context:
Sent from the ivy-user mailing list archive at

View raw message