-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin PCT runs should use current BOM version, not the BOM version defined by the plugin #821
Comments
PCT has loads of problems. I think it will only update dependencies that are literally shown as |
I don't doubt that jenkinsci/maven-hpi-plugin#66 will solve this sort of thing in the long term. But I think getting PCT, when run from this repository, to update the version of the plugin BOM specified in the plugin's |
Should be possible. Would need to introduce a new (repeatable) option to PCT allowing you to indicate the GAV of a BOM which it would check for an import of in the POM. |
and do what with that information? just using the latest is not correct and can end up testing a combination that is too new for a combination set.
|
As above, make PCT rewrite the imported BOM version to be a supplied version. So if you ran PCT with -updateBOM io.jenkins.tools.bom:bom-2.289.x:1168.v0a_657ceb_868f,io.jenkins.tools.bom:bom-2.303.x:1168.v0a_657ceb_868f,… (with the version number corresponding to the currently tested source tree, or <dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.289.x</artifactId>
<version>1075.v14bef33e5d7b</version>
<scope>import</scope>
<type>pom</type>
</dependency> would be changed to <dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.289.x</artifactId>
<version>1168.v0a_657ceb_868f</version>
<scope>import</scope>
<type>pom</type>
</dependency> Whether that is the right fix of this problem is another question. The issue title implicitly assumes a particular solution, but the actual problem is that PCT is given a |
And even when you have an explicit |
Not sure if jenkinsci/plugin-compat-tester#202 is in active use, but it does not address the issues here. |
I wonder if jenkinsci/plugin-compat-tester#240 actually worked. |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 20.04.3 LTS x86_64
Reproduction steps
Run e.g.
PLUGINS=mailer bash local-test.sh
.Expected Results
The PCT run should use the versions of all plugins defined in this repository.
Actual Results
Mailer defines its BOM version as
1075.v14bef33e5d7b
, and the PCT run will use that BOM version when building up the test classpath, though the Jenkins WAR will be the "megawar" with the plugin versions defined in this repository.Anything else?
No response
The text was updated successfully, but these errors were encountered: