How to publish custom artifacts to Artifactory from TeamCity?

Martin

I am using Artifactory and TeamCity and have a C++ project that generates binary packages (zip). Using Artifactory TeamCity plugin I am able to publish this artifact but the problem is that it does not end up in the correct tree (organization.module.version.artifact). Next to the zip file I have also an ivy.xml file that contains information about the artifact.

<ivy-module version="2.0">
    <info organisation="com.myorg" module="MyModule"/>
    <publications>
        <artifact name="MyModule" type="zip" ext="zip"/>
    </publications>
</ivy-module>

When I look in Artifactory at the Artifact browser the uploaded zip has even no Module-Id.

Any ideas how to tell the TC plugin to make use of this configuration file so that my zip is deployed correctly?

Regards, Martin

liorha

One solution for your problem:

  1. Make sure that your file is in the right layout after the build, for example
    workspace..\..com\myorg\MyModule\2.0\MyModule.zip
  2. Use the Ant pattern in the Artifactory plugin, in your case 'workspace.../*.zip=>

    If the right side of the pattern is left empty, the plugin will deploy the artifacts maintaining the relative path for each file.

    So in your case, the file will be stored in the Artifactory repository: repository:com->myorg->MyModule->2.0->somefile.zip

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Gradle Artifactory Plugin - How to publish artifacts from multiple modules in a project?

How to publish/deploy a npm package to custom artifactory

How to restore/recover deleted artifacts from JFrog artifactory

How to publish modules on Artifactory with their versions, dependencies and a custom artifactId

Download artifacts archive from Artifactory

How to publish Travis CI artifacts to GitHub Release from several jobs

How to publish and download artifacts from multiple jobs into one location on pipeline?

How to send Artifactory publish credentials from buildscript without hardcoding them?

IntelliJ/Maven not updating artifacts from Artifactory

Cleanup old artifacts from Jfrog artifactory OSS

Pull all artifacts from Maven Artifactory instead of just JAR artifacts

How to versionate artifacts on Artifactory without overwriting

Pipelines: cannot publish a file from artifacts directory

How to deploy an artifact from group of artifacts to jfrog artifactory using jenkins post build action

how to find artifacts from jfrog artifactory that have a specific property value using REST API

How to delete all build artifacts in TeamCity?

How to manually publish a file to Azure Artifacts?

How to use artifactoryPublish to publish release and debug artifacts

How can I download artifacts from teamcity 8.1.2 using C# code

How to publish artifacts separately for each project in solution from VSTS CI pipeline?

How to script Gradle in order to publish shadowjar into Artifactory

How to configure Maven2 to publish to Artifactory?

How do I publish Gradle plugins to Artifactory?

How to publish an Android .aar file to Artifactory

Artifactory: Move artifact from repo to another repo, filtering the artifacts

How to upload .net core build artifacts into JFrog Artifactory Cloud

Delete artifacts in artifactory under specified path based on how old they are

How can I download all artifacts for appended builds in Artifactory?

Overwriting Artifactory artifacts (and history)?

TOP Ranking

HotTag

Archive