Azure DevOps: Error importing Maven artifact from Azure Artifacts into Release

bitoiu

So I'm trying to do a proof of concept with the Azure DevOps stack and a project Java Maven project I usually build with Jenkins and host with Heroku. Initially I was trying to setup a release pipeline straight from the build pipeline WAR file but since it couldn't find it I said to myself "well, if you publish to artifacts it should be straighforward" so I did.

Build is publishing a maven artifact to Azure Artifacts

feed

No issues here as far as I'm concerned. I didn't mess with permissions, but I did notice that under Feed Settings, I cannot selected (it's greyed out) "Allow builds and releases". But the Project Collection Build Services is set as a contributor.

Configuring the artifact in the release

So here is the first potential issue. The feed shows up in the dropdown but the artifact doesn't. There's only one artifact on the feed so I find this strange:

enter image description here

So I'm asked to entered it manually and this is where things start to get tricky. To me the id of the artifact should be the maven coordinates com.acme.demo:reading-time-app. If I enter that I can proceed, but there's no confirmation that's the right ID:

enter image description here

Creating and triggering the release

So as I create a new release it asks me for the version number and again the dropdown doesn't come up. So I write in version 1.1 which you can confirm from the first screenshot it exists:

enter image description here

I trigger the release and I get the following error during the Download Artifact phase:

2019-01-19T17:11:46.7642756Z ##[section]Starting: Download artifact - _com.acme.demoreading-time-app (Azure Artifacts)
2019-01-19T17:11:46.7895376Z ==============================================================================
2019-01-19T17:11:46.7895486Z Task         : Download Package
2019-01-19T17:11:46.7895573Z Description  : Download a package from a Package Management feed in Azure Artifacts or TFS. 
 Requires the Package Management extension.
2019-01-19T17:11:46.7895642Z Version      : 0.1.17
2019-01-19T17:11:46.7895704Z Author       : ms-vscs-rm
2019-01-19T17:11:46.7895757Z Help         : Needs Package Management extension to be installed
2019-01-19T17:11:46.7895859Z ==============================================================================
2019-01-19T17:11:48.2563329Z SYSTEMVSSCONNECTION exists true
2019-01-19T17:11:48.2619024Z ##[error]Failed to get package metadata with error Error: Invalid Resource
2019-01-19T17:11:48.9982590Z ##[section]Finishing: Download artifact - _com.acme.demoreading-time-app (Azure Artifacts)

I'm losing my mind here. I'm thinking this should be pretty straighforward but I'm not even at the stage to debug any issues with the deployment into the Azure App Service yet. Any help is deeply appreciated.

Thank you in advance!

Alex Mullans

Sorry for the confusion here - currently, the "Azure Artifacts" artifact type only supports NuGet packages. We should have a string change out in the current deployment making that clearer. We're also working to expand it to support all the other types (Maven, npm, Python, and Universal); that should be available around end of February.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to download an artifact in Azure DevOps artifacts

Azure DevOps self-hosted agent is not able to download artifact from Azure Artifacts

Artifact not being downloaded in release pipeline - Azure DevOps

Azure DevOps - Maven Pipeline publish artifacts

Azure DevOps: How to retrieve a build artifact from build Azure Pipeline from a PowerShell Script in Release Pipeline?

azure devops: copy and publish build artifacts - rename artifact by buildnumber

Azure Devops multiple artifacts based on different configs or one artifact

Azure DevOps Artifacts

Artifacts in Azure Devops Pipelines

VSTS - Azure DevOps: AppSettings transformations during the release, or multiple artifacts

Create Azure DevOps release without artifacts via Rest API

Publish latest build artifact from "LOCAL" Jenkins to Azure DevOps Release Pipeline?

Creating an AAR artifact from code in Azure Devops

azure devops: copy file to artifact folder to access in release pipeline

How to read directory path of the Artifact in Release pipeline in Azure DevOps?

Azure release add artifact

Azure Devops install Python package from Azure Artifacts inside Docker

Maven project is not able to download artifacts from Azure Artifacts

Publish custom maven artifact/package (*.jar) to Azure artifact using azure DevOps pipeline

Error while deploying release pipeline in Azure Devops

Azure build and release artifacts naming?

Azure devops missing artifacts menu

Grab files from Azure DevOps Release Pipeline

Azure DevOps Artifacts 401 error when publishing npm extension

Azure DevOps nuget artifact delay

Azure Devops - Can not retrieve artifact

How to download the latest build artifacts from Azure DevOps programmatically?

pip install from Azure DevOps Python Artifacts feed not working

Azure DevOps fails to download artifacts from its own repository