OverviewArtifactory Promoter is an Azure DevOps extension that adds advance capabilities for the Artifactory promotion task only. This tasks copies or moves artifacts from one repository to another within the same server, using the build properties associated in the Release Pipeline. What makes this task unique is that it does not promote all of the build's artifacts, but only those for a defined source. So in case your build produces two types of artifacts into two separate artifactory repositories, but you only want to promote one artifact type, now you can promote just that one artifact instead of both artifacts sourced from two repositories and end up in the same target repository, which is wrong. Documentation and Source CodeIt is all here on GitHub. RequirementsThis extension depends on the "Artifactory" service connection to be present. This is installed by the JFrog Artifactory extension. Since the Artifactory Promoter extension relies on build information in the Artifactory server and that is stored using the JFrog Artifactory extension, then it is a safe bet to assume that the service connection exists, so my extension makes use of it (no need to create duplicate service connections). How to use the extensionIn your Release Pipeline add a Step. Under the "Utility" find "Artifactory Promoter" and add it to your deployment step.
What the extension doesFor this example, this extension will search for the build "RA-Common", and the build number "RA-Common-1.0.0", and for any associated artifacts in the repository "biztalk-msi-build-local". The artifacts associated with the build are these: But the artifact returned will only be the MSI package. Now that MSI package is copied to the target repository: Notice that the directory structure is kept the same. Now that all the artifacts have been promoted, a promotion entry is created and associated with the build in Artifactory: If you go into your Release Pipeline and then into the logs of the release steps this will be your log YOU ARE DONE! What is ArtifactoryLearn more about what a great product Artifactory can be for your organization. Are you using a network share for your build artifact needs and it getting unwieldy? Need a place to store NuGet packages? Need an automated process to clean-up pre-release artifacts without having you need to worry about it? Need to secure those releases for a long time and make sure no one deletes them? Need structure in a chaotic world? Try Artifactory. |