If you have specified deployment settings with the required credentials in a dedicated settings file, you can refer to them by assigning a unique ID.
For example, the following code snippet assigns the deployment settings with the id ivy.publish.settings
:
<ivy:settings id="ivy.pub.settings" file="publish_to_artifactory_settings.xml"/>
Then, the publishing task points to these settings using the following attribute in the publish
element:
settingsRef="ivy.pub.settings"
For details please refer to the Ivy documentation for Ant Tasks.