Deploying Maven artifacts to GitHub packages

18 views
Skip to first unread message

Joel Strasser

unread,
Jul 4, 2020, 11:10:41 PM7/4/20
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages