Configuring Jenkins remote repo causes missing artifact error

I am using a project that is configured using the jenkins bom.

Some artifacts are missing so I attempted to configure the Jenkins Remote Repository in my settings.xml

<mirror>
  <id>repo.jenkins-ci.org</id>
  <url>https://repo.jenkins-ci.org/releases/</url>
  <mirrorOf>*,!repo.jenkins-ci.org,!incrementals</mirrorOf>
</mirror>

This causes another error which is why I am getting in contact now.

$ mvn test
[INFO] Artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:pom:1.3 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases+snapshots), repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases)]
[INFO] Artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:pom:1.3 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases+snapshots), repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases)]
Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/releases/io/jenkins/tools/incrementals/git-changelist-maven-extension/1.3/git-changelist-maven-extension-1.3.pom
[WARNING] The POM for io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 is missing, no dependency information available
[INFO] Artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases+snapshots), repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases)]
[INFO] Artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases+snapshots), repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/, default, releases)]
Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/releases/io/jenkins/tools/incrementals/git-changelist-maven-extension/1.3/git-changelist-maven-extension-1.3.jar
[ERROR] Error executing Maven.
[ERROR] Extension io.jenkins.tools.incrementals:git-changelist-maven-extension:1.3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 (present, but unavailable): Could not find artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 in repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/)
[ERROR] Caused by: The following artifacts could not be resolved: io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 (present, but unavailable): Could not find artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 in repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/)
[ERROR] Caused by: Could not find artifact io.jenkins.tools.incrementals:git-changelist-maven-extension:jar:1.3 in repo.jenkins-ci.org (https://repo.jenkins-ci.org/releases/)

Is there some explanation for this. My expectation is is the releases repo will contain everything I would need. Have I gone wrong somewhere ?

I worked around this issue by installing locally the missing artifact.

The next missing artifact is org.kohsuke:pom version 19.

$ http HEAD https://repo.jenkins-ci.org/public/org/kohsuke/pom/19/pom-19.pom
HTTP/1.1 404
Connection: keep-alive
Content-Type: application/json;charset=ISO-8859-1
Date: Tue, 02 Jul 2024 12:21:07 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Artifactory-Id: 8b753c83a3d599ba4e83e817c24ecfe1727b5b26
X-Artifactory-Node-Id: jenkinsci-artifactory-primary-0
X-JFrog-Version: Artifactory/7.89.2 78902900

Again had to workaround this by installing locally. Solved.

The next missing dependency is org.jenkins-ci.main:jenkins-war:executable-war:2.440.3

[DEBUG] Fork Channel [1] connected to the client. Handler java.util.logging.ConsoleHandler is not defined [INFO] Running jenkins.plugins.horreum.HorreumUploadStepTest SLF4J(W): Class path contains multiple SLF4J providers. SLF4J(W): Found provider [org.slf4j.impl.JBossSlf4jServiceProvider@17d238b1] SLF4J(W): Found provider [org.slf4j.jul.JULServiceProvider@3d7cc3cb] SLF4J(W): See https://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J(I): Actual provider is of type [org.slf4j.impl.JBossSlf4jServiceProvider@17d238b1] Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/2.440.3/jenkins-war-2.440.3.executable-war Downloading from central: https://repo1.maven.org/maven2/org/jenkins-ci/main/jenkins-war/2.440.3/jenkins-war-2.440.3.executable-war [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.78 s <<< FAILURE! - in jenkins.plugins.horreum.HorreumUploadStepTest

Now why did plugin-pom start referencing the type as executable-war in 2.30 when this dependency is missing from the jenkins mirror site ?

issue #968 was created.

1 Like

The feedback I received to the issue created on the project proved very useful. I had not set up the project correctly.