Could not find artifact org.jenkins-ci.main:jenkins-war:jar:war-for-test:2.164.1

9 views
Skip to first unread message

Rafael Ruiz Palacios

unread,
Apr 4, 2019, 12:21:52 PM4/4/19
to jenkin...@googlegroups.com
Hi team!

Anyone has faced the following exception while building a plugin for Jenkins on https://ci.jenkins.io/ ?

org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jenkins-ci.main:jenkins-war:jar:war-for-test:2.164.1 in azure-incrementals (https://repo.azure.jenkins.io/incrementals/)


I’m building the plugin with a very simple Jenkinsfile step (https://github.com/jenkinsci/rapiddeploy-plugin/blob/master/Jenkinsfile):

buildPlugin(configurations: buildPlugin.recommendedConfigurations())

But if I remove the recommended configurations, it works fine! :-|

buildPlugin()

Why is there a configuration combination that doesn’t work? Any idea why this happens?

Big thanks! :-)

Rafa
--
Rafael Ruiz Palacios
Software Engineer

MidVision Ltd
4 Prince Albert Road
Regent's Park
London NW1 7SN

M (Uk) +44 754 324 2681


Jesse Glick

unread,
Apr 4, 2019, 2:01:03 PM4/4/19
to Jenkins Dev
On Thu, Apr 4, 2019 at 12:21 PM Rafael Ruiz Palacios
<rafael.ru...@midvision.com> wrote:
> Any idea why this happens?

Update to a newer parent POM and specify your `jenkins.version` and
`java.level`:

https://github.com/jenkinsci/plugin-pom#usage

You can delete the `jenkins-test-harness.version` override. You can
also delete your configuration of `maven-deploy-plugin`, your
`distributionManagement`, and if possible your `MidVision` repository
(since all libraries needed by the plugin ought to be uploaded to
`repo.jenkins-ci.org/public`).
Reply all
Reply to author
Forward
0 new messages