Deploying Maven artifacts to GitHub packages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Deploying Maven artifacts to GitHub packages

Joel Strasser
Hi,

I setup a job in jenkins and now wanted to deploy to GitHub packages. The job fails with this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) on project cartjets: ArtifactDeployerException: Failed to deploy artifacts: Could not transfer artifact at.joestr:cartjets:jar:shaded:0.1.43-20200705.013310-2 from/to github-joestr-repo (https://maven.pkg.github.com/joestr/CartJets): Failed to transfer file: https://maven.pkg.github.com/joestr/CartJets/at/joestr/cartjets/0.1.43-SNAPSHOT/cartjets-0.1.43-20200705.013310-2-shaded.jar. Return code is: 422, ReasonPhrase: Unprocessable Entity. -> [Help 1]

The shaded artifact is online though.

Running the same Maven command locally results with no error.

Is this a problem with Jenkins, Maven or GitHub? (or me)?

Regards,
Joel

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/db3ac99c-6fd9-4c66-bc6c-db4661d6291cn%40googlegroups.com.