-
Bug
-
Resolution: Fixed
-
Major
-
None
As of Jenkins 2.64, the 'war-for-test' is no longer published to http://repo.jenkins-ci.org/releases/org/jenkins-ci/main/jenkins-war/.
This is expected, as it is the result of JENKINS-24064.
However, currently, the Gradle JPI Plugin expects this artifact to always be available, regardless of Jenkins version:
This causes an issue when running, for example, 'gradle test' in a project applying the Gradle JPI Plugin, as it cannot find war-for-test.
Here is a minimal reproduction, which can be run with 'gradle test'
build.gradle:
plugins { id 'org.jenkins-ci.jpi' version '0.22.0' } jenkinsPlugin { coreVersion = '2.74' }
which yields:
FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':pluginResources'. > Could not find jenkins-war-war-for-test.jar (org.jenkins-ci.main:jenkins-war:2.74). Searched in the following locations: https://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/2.74/jenkins-war-2.74-war-for-test.jar
- blocks
-
JENKINS-47705 "Disable removed jobs" feature does not work with pipeline jobs
- Closed
- is related to
-
JENKINS-47988 gradle is unable to resolve war-for-test
- Resolved